Integration With Segment

You are here:
Estimated reading time: 2 min

Segment is an analytics collection platform that passes user and event data to other platforms for analytics, tracking, and business intelligence purposes. By taking a few steps to coordinate your Trackier and Segment accounts, you’ll be able to route that data to Trackier.

1. Check Settings in Trackier

In Trackier, make sure you have enabled Server Postback as conversion Tracking Method inside a campaign. If it is not set then you can change it by going to Edit in Restriction/Targeting Card In the Basic tab, you will find Conversion Tracking Method option.
Server Postback Trackier

2. Enable Integration in Segment

Once your offer is ready in Trackier, you’ll need to enable the integration in Segment.

  • To turn on the Trackier integration, go to your project page and select the Integrations tab. From there, find and enable Trackier integration.
  • On that Page, select the Settings tab. Enter your Trackier Security Token, and click Save Changes
You need to Enter Global Postback URL Security Token to get it to work.

To get Global Postback URL security Token, go to Profile by clicking on your account name right top corner.

there you will find like below image and you need a security_token that is “ed450ab20f3352423947” from your account to enter in Segment Integration.

3. Update Your Project

Before continuing with the integration, you need to have a Segment set up for your project. That means analytics.js is imported wherever necessary, and that track is working properly for events you care about.

To connect to Trackier, modify the track calls in your project using the steps below.

analytics.track()
Next, you need to include the Trackier click_id value into Segment tracking. In places where you call track, load the click_id value from the traits array:

analytics.ready(function(){
       var traits = analytics.user().traits();
       analytics.track(“REPLACE_WITH_EVENT_NAME”, {
             click_id: REPLACE_WITH_CLICK_ID,
             sale_amount: (Optional)for tracking product sales value, is used in reporting profit et,
             sub1: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub2: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub3: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub4: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub5: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub6: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub7: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub8: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub9: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             sub10: (Optional) extra parameter to be passed in postback URL to be notified to Trackier from advertiser,
             txn_id: unique transaction id, use the default value to be RANDOM to track upsells on a single click,
             goal_id: unique constant id for each campaign goals,
             goal_value: short name for goals
         });
     });

To include more information, you can optionally put additional Trackier Parameters in the properties field of track.

All currently available optional parameters for this integration are included in the above snippet

The above code snippets are ready to use in your project. However, you may need to modify them slightly to match how the project itself is implemented in your system.

You can also find more detailed information on analytics.js, and analytics.track() in their technical documentation.

 

In case you have any issue please mail us at support@trackier.com

Was this article helpful?
Dislike 0
Views: 24