1. Knowledge Base
  2. Solution home
  3. Trackier Performance
  4. Integration

Segment Trackier Integration

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.

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



Step 2 - Enable Integration in the 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.


Note
You need to Enter Global Postback URL Security Token to get it to work.


Get Global Postback URL security Token

  • Go to Profile by clicking on your account name top right corner.
  • Copy the Global Security Token and paste in the Segment panel.

 


Step 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.


Step 4 - analytics.track()


Next, you need to include the Trackier click_id value into Segment tracking. In places where you call the 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 the track.


Note
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?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article