Implementing Quantcast Easy Tag for Advertise

Quantcast Advertise

Implementing your Quantcast Easy Tag for Advertise

Easy Tag Implementation is simple and straightforward.  Below please find instructions for implementing your Easy Tag directly to your website or check out the implementation guides  (translated guides found here) we have compiled for popular vendors.

As a reminder, we recommend tagging every page of your site to ensure strong campaign performance and robust insights.    

Implementing Quantcast Easy Tag Directly on Your Website

Follow this simple 2-step process to ensure strong campaign performance and robust insights.  Place the tag between the <body> … </body> HTML markers.

Reminders:

  • Do not alter the code. Edits to the code may disable the tag from collecting data.
  • The tag does not interfere with your page load. Quantcast tag is asynchronous (it loads in the background). See here for more technical details.   

1. Conversion Activity tag: add the below tag to your conversion page(s) and replace the placeholders in the tag to fire the corresponding data.  This data allows Quantcast to refine optimizations, validate campaign performance, and share detailed insights. Example: revenue.INSERT+REVENUE will return orderid.23.45 to indicate a transaction of $23.45.  Check out our data passback implementation overview for more details.

<!– Start Quantcast Tag –>
<script type=”text/javascript”>
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:’p-INSERT+PCODE’,
labels:’_fp.channel.INSERT+ADDITIONAL+INFO+1,_fp.subchannel.INSERT+ADDITIONAL+INFO+2,_fp.event.Purchase Confirmation,_fp.customer.INSERT+CUSTOMER+TYPE
,_fp.pcat.INSERT+PRODUCT+CATEGORY‘,
orderid:’INSERT+ORDER+ID‘,
revenue:‘INSERT+REVENUE‘,
event:’refresh’}
);
</script>
<noscript>
<img src=”//pixel.quantserve.com/pixel/p-INSERT+PCODE.gif?labels=_fp.channel.INSERT+ADDITIONAL+INFO+1,_fp.subchannel.INSERT+ADDITIONAL+INFO+2_fp.event.Purchase+Confirmation,_fp.customer.INSERT+CUSTOMER+TYPE,_fp.pcat.INSERT+PRODUCT+CATEGORY&orderid=INSERT+ORDER+ID&revenue=INSERT+REVENUEstyle=”display: none;” border=”0″ height=”1″ width=”1″ alt=”Quantcast”/>
</noscript>
<!– End Quantcast tag –>

 

2. Remaining Site Activity: add the below tag to the remaining pages.  

<!– Start Quantcast Tag –>
<script type=”text/javascript”>
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: “p-CODE“});
</script>
<noscript>
<img src=”//pixel.quantserve.com/pixel/p-CODE.gif?labels” style=”display: none;” border=”0″ height=”1″ width=”1″ alt=”Quantcast”/>
</noscript>
<!– End Quantcast tag –>

 

You are done!  Please notify your Quantcast rep so that they can confirm your tags are collecting data.  

 

Learn more about our advertising solutions.