- Print
- DarkLight
Advanced Installation: Image Pixels (non-JavaScript)
Pixels
If you are not able to install JavaScript code snippets on your website, you may install image pixels to track conversion events.
Note: Using image pixels instead of JavaScript can have an impact on 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 pixel using an <img> tag. Please contact support if you have questions about establishing consent.
Pixel Tag
The basic pixel 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 pixel 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&orderid=InsertOrderIdNumber&revenue=InsertRevenue" style="display:none;" border="0" height="1" width="1" alt=""/>
Note: Replace p-XXXXXXXXXXXXX with your p-code.
Please note that pixels 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