At a Glance: This article helps you understand how to integrate your Trackier panel with Segment.
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.
Steps to Integrate Trackier with Segment
Step 1: Check Settings in 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 the Settings tab. You will find the Conversion Tracking Method option in the Basic settings.
Step 2: Enable Integration in the Segment
Once your offer is ready in Trackier, you’ll need to enable the integration in Segment.
To configure the Trackier integration, go to your project page on Segment 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:
It is suggested that you enter the Global Postback URL Security Token to get the integration to work.
Get the Global Security Token:
Go to Profile by clicking on your account name in the top-right corner.
Copy the global security token and paste it into 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.
Broaden your knowledge:
We're thrilled to have put together a top-notch team of qualified experts who are available to handle any of your concerns and respond to any inquiries you may have. You can contact us at any time by sending an email to support@trackier.com or using the in-platform chat feature.