Tracking Transaction IDs for Conversion Pixels

A transaction ID is an alphanumeric code, like an SKU or an order number, that you associate with a conversion pixel for tracking and reporting purposes. To include a transaction ID in your conversion pixel tag, add the key "transactionID" to the tracking URL.

This is the template:

?transactionId=[ADD-YOUR-TRANSACTION-ID-HERE]

A transaction ID can include letters or numbers, but no symbols. For example:

?transactionId=ABCD1234

Example 1: HTML Image Tag

Here is an example of how you use this key in an HTML image pixel tag:

Without transaction ID:

<img src="//clickserv.basis.net/conv/144188c2bb62a178" width="1" height="1" style="position: absolute; left: -150px;" />

With transaction ID:

<img src="//clickserv.basis.net/conv/144188c2bb62a178?transactionId=ABCD1234" width="1" height="1" style="position: absolute; left: -150px;" />

Example 2: Javascript Tag

Without transaction ID:

<script type = "text/javascript" >
    var ssaUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'clickserv.basis.net/conv/144188c2bb62a178';
new Image().src = ssaUrl;
(function(d) {
    var syncUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'pixel-a.basis.net/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>       

With transaction ID:

<script type = "text/javascript" >
    var ssaUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'clickserv.basis.net/conv/144188c2bb62a178?transactionId=ABCD1234';
new Image().src = ssaUrl;
(function(d) {
    var syncUrl = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'pixel-a.basis.net/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>       

You can use transaction IDs and Dynamic Revenue tracking in the same tag:
<img src="//clickserv.basis.net/conv/9de930f4b1f38a29/46.12?transactionId=ABCD1234" width="1" height="1" style="position: absolute; left: -150px;" />

For information about tracking transaction IDs for universal pixel, see Passing Data Objects in the Universal Pixel Script page.