Add Quantcast tracking conversion pixel

Overview


Use Quantcast to track conversions with a conversion pixel on the confirmation page. Follow the directions below to connect Quantcast to Celery.

Disclaimer

  • Do not use the default code snippet provided by Quantcast. Instead, use the Celery code snippet below with your Quantcast settings.

Getting Started


Step 1: Setup your Quantcast tracking conversion pixel

https://www.quantcast.com/help/using-the-quantcast-asynchronous-tag/

Step 2: Retrieve your Quantcast account ID



Step 3: Add the tracking pixel (below) in the custom confirmation scripts

Remember to replace qacct:"x-xxxxxxxxx" with your Quantcast account ID. 
<!-- Start Quantcast Tag -->
<script type="text/javascript"> 
var order = App.getOrder({version: 'v1'});
var orderNumber = order.number;
var total = order.total / 100;
var _qevents = _qevents || [];
 
(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();
 
_qevents.push(
{qacct:"x-xxxxxxxxx",labels:"_fp.event.Purchase Confirmation",event:"refresh",orderid:orderNumber,revenue:total.toString()}
);
</script>
<!-- End Quantcast tag -->
Once done, please confirm with your Quantcast account manager that the order number and order total is properly being tracked.

Related Resources



Feedback and Knowledge Base