In order to track conversions, you will need to place either Thrive's postback URL or pixel with your affiliate network.
Your global postback or pixel can be found under the Tracking tab of your login:
We offer the below options to place on your offer:
- Postback URL
- Iframe Pixel
- Image Pixel
- JavaScript Pixel
Global Postback URL
Our global postback url is a server based method of tracking, which is cookieless. Since it does not rely on browser cookies, it is considered to be a very accurate source of tracking. Rather than using cookies, it instead relies on a unique identifier, called Thrive's SubID (also known as a click ID) which is generated on every unique click.
- &subid= parameter is required to be filled in by your affiliate network. They need to place the token provided by their own platform that will pass through the unique clickID here.
- You will also want to make sure to add in {subid} to the offer URL in the corresponding parameter that the network reserves for the unique clickID.
- tid= can be used to track transaction IDs.
- offerid= can be used to pass the Thrive Offer ID. Please do not pass any other ID in this parameter.
- amount = may be used to pass in the payout amount. Anything sent in this parameter will override the conversion value you set on the offer modal in Thrive.
- The s1 through s5 parameters may be used to capture any additional variables on the conversion.
- If tracking events/upsells, make sure to visit this support article.
Please note that if you are using our postback, that will limit you to only firing any third party postback pixels. Postback URLs can not piggyback fire browser based pixels like an iframe pixel. If you plan on placing a html based pixel for your traffic source (iframe, java, FB pixels) you will want to use our iframe pixel on the offer instead (or in addition to the postback).
Browser Based HTML Pixels (Iframe, Image, JavaScript)
Browser based HTML pixels include iframe, image, and javascript. These pixels rely on a visitor's cookies in order to fire. They may be placed directly in the body of the page code, or in another tracking platform of your advertiser's.
If the page your pixel will be placed on is secure (https), then you will want to make sure you have SSL enabled on your domain in order to use a https pixel. If you need SSL installed, please submit a support ticket and our team can help get you set up. We offer full SSL support for only $10/mo/domain.
Iframe Pixel
- Iframe pixels can either be placed in your network's own platform or in the body of the actual page where the conversion occurs.
- The below parameters are available to use in the iframe pixel:
- tid= can be used to track transaction IDs.
- offerid= can be used to pass the Thrive Offer ID. Please do not pass any other ID in this parameter.
- amount = may be used to pass in the payout amount. Anything sent in this parameter will override the conversion value you set on the offer modal in Thrive.
- subid= may be used to pass the unique clickID (optional)
- The s1 through s5 parameters may be used to capture any additional variables on the conversion. You can view the information passed through these parameters in your click/conversion log.
If you will be tracking events/upsells, please refer to this article for more information.
Image Pixel
Note that if you are using our image pixel, this will limit you to only firing any third party postback pixels. If you plan on placing a html based pixel for your traffic source (iframe, java, FB pixels) you will want to use our iframe pixel on the offer instead.
- Image pixels can either be placed in your network's own platform or in the body of the actual page where the conversion occurs.
- The below parameters are available to use in the iframe pixel:
- tid= can be used to track transaction IDs.
- offerid= can be used to pass the Thrive Offer ID. Please do not pass any other ID in this parameter.
- amount = may be used to pass in the payout amount. Anything sent in this parameter will override the conversion value you set on the offer modal in Thrive.
- subid= may be used to pass the unique clickID (optional)
- The s1 through s5 parameters may be used to capture any additional variables on the conversion. You can view the information passed through these parameters in your click/conversion log.
If you will be tracking events/upsells, please refer to this article for more information.
JavaScript Pixel
The javascript pixel is helpful when you want to track user activity in more detail, such as on a specific click through button on your page.
You will need to place the javascript code from your login in the header of your page, like below (make sure to use your Thrive domain in place of the one in this example) :
<script type="text/javascript"> function ttpostback(subid, params, success, fail) { if(!subid) { return; } var amount = params.amount || ''; var offerid = params.offerid || ''; var tid = params.tid || ''; var s1 = params.s1 || ''; var s2 = params.s2 || ''; var s3 = params.s3 || ''; var s4 = params.s4 || ''; var s5 = params.s5 || ''; success = success || function(){}; fail = fail || function(){}; var req = null; if(window.XMLHttpRequest) { req = new window.XMLHttpRequest(); } else { req = new ActiveXObject("Microsoft.XMLHTTP"); } var url = 'http://yourthrivedomain.thrivetracker.com/conv?' + 'tid=' + tid + '&offerid=' + offerid + '&amount=' + amount + '&subid=' + subid + '&s1=' + s1 + '&s2=' + s2 + '&s3=' + s3 + '&s4=' + s4 + '&s5=' + s5; req.open('GET', url); if(typeof success === 'function') { req.onload = success; } if(typeof fail === 'function') { req.onerror = fail; } req.send(); } </script> |
Then, in the body of your page where you want the actual conversion to occur (e.g. on a button click), you would place the actual function to call.
- subid (clickID) is required
- tid can be used to track transaction IDs.
- offerid can be used to pass the Thrive Offer ID. Please do not pass any other ID in this parameter.
- amount may be used to pass in the payout amount. Anything sent in this parameter will override the conversion value you set on the offer modal in Thrive.
- The s1 through s5 parameters may be used to capture any additional variables on the conversion. You can view the information passed through these parameters in your click/conversion log.
- The function also accepts 2 additional optional parameters, success and fail callback function, that should be added as the fifth and sixth parameter respectively, like:
ttpostback(subid, params, function() { console.log('success'); }, function() { console.error('fail'); })
If placing inside of an advertiser's platform, you can place the entire code (header and body portions) in the same spot on their platform. Just copy the JavaScript code from Thrive and make sure to add in their token for the subID (clickID) as well as any additional parameters you may want to track, such as transaction ID and payout.
Have questions? Feel free to reach out to our support team anytime here
Comments
0 comments
Please sign in to leave a comment.