Tracking Conversions with Dynamic Values

In some cases, the revenue value of a conversion will not be the same every time, and it is necessary to account for a dynamic revenue amount. This is quite common in situations where the user will be filling a shopping cart with various items, and the payout is a revenue share between the advertiser and the agency or affiliate. In these cases, the advertiser inserts the revenue amount into the conversion pixel for each conversion.

Use conversion pixels or universal pixels to track conversions with dynamic values.

Passing Dynamic Values for Conversion Pixels

When you create the conversion pixel, set Revenue Trackingto Dynamic.

To pass dynamic values, add a forward slash (/) followed by the revenue amount to the end of the URL in your conversion pixel:

Original Pixel:

<img src="https://clickserv.sitescout.com/conv/144188c2bb62a178" border="0">

Pixel with Dynamic Revenue:

<img src="https://clickserv.sitescout.com/conv/144188c2bb62a178/[INSERT-REVENUE-HERE]" border="0">

Example (This will record a revenue of $46.12.):

<img src="https://clickserv.sitescout.com/conv/144188c2bb62a178/46.12" border="0">

When you get a script tag for a conversion pixel that uses dynamic values, look for the placeholder that shows where to insert the web store's revenue tracking macro: 

<script type = "text/javascript" >
    var ssaUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'clickserv.sitescout.com/conv/ab1c2de345678fg9/[INSERT REVENUE MACRO HERE]';
new Image().src = ssaUrl;
(function(d) {
    var syncUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'pixel-sync.sitescout.com/dmp/asyncPixelSync';
    var iframe = d.createElement('iframe');
    (iframe.frameElement || iframe).style.cssText = "width: 0; height: 0; border: 0;";
    iframe.src = "javascript:false";
    d.body.appendChild(iframe);
    var doc = iframe.contentWindow.document;
    doc.open().write('<body onload="window.location.href=\'' + syncUrl + '\'">');
    doc.close();
})(document); </script>

Passing Dynamic Conversion Revenue for a Universal Pixel

You can pass dynamic conversion revenue for universal pixels through a reserved key in the cntrData data object, called cntr_revenue. For example:

<script type = "text/javascript" >
    var cntrData = {
        'cntr_revenue': '46.12',
    }; 
</script> 
<!—Universal Pixel Script Code Here-- >

This example tracks a revenue of $46.12 every time the pixel fires. To make this a dynamic value, you must use a macro. The data object would then look like this:

<script type = "text/javascript" >
    var cntrData = {
        'cntr_revenue': '[InsertRevenueTrackingMacroHere]',
    }; 
</script> 
<!—Universal Pixel Script Code Here-- >

This macro is defined by whoever sets up your site. Example macros could be [CartTotal] or [CartCheckout].

Macros are usually case sensitive. Double check with your site admin before you place the macro.

For more information about passing data objects for universal pixels, see Universal Pixel Scripts.