Advanced Installation: Image Tag (non-JavaScript)

Prev Next

Image Tag

If you are unable to install JavaScript code snippets on your website, you can use image tags to track conversion events.

Note: Using image tags instead of JavaScript can affect measurement in cookieless environments.

Due to GDPR and CCPA regulations, site owners must obtain consent from users in the EU and California before displaying the Quantcast image tag using an <img> tag.  Please contact support if you have questions about establishing consent.

Image Tag

The basic image tag code:

<img src="//pixel.quantserve.com/pixel/p-XXXXXXXXXXXXX.gif?labels=_fp.event.PageView" style="display:none;" border="0" height="1" width="1" alt=""/>

Note: replace p-XXXXXXXXXXXXX with your p-code.

Adding Parameters

You may also pass parameter variables to Quantcast by appending them to the image URL. The following image tag tracks a “Purchase” event along with orderid and revenue variables:

<img src="//pixel.quantserve.com/pixel/p-XXXXXXXXXXXXX.gif?labels=_fp.event.Purchase&amp;orderid=InsertOrderIdNumber&amp;revenue=InsertRevenue" style="display:none;" border="0" height="1" width="1" alt=""/>

Note: Replace p-XXXXXXXXXXXXX with your p-code.

Please note that image tags installed using an <img> tag have the following limitations:

  • Cannot be fired without user consent  

  • Cannot be fired multiple times on each page load

  • Cannot track standard or custom events triggered by UI interactions (e.g., a button click)

  • Subject to HTTP GET limits in sending custom data or long URLs

  • Cannot be loaded asynchronously