Advanced Installation: Image Pixels (non-JavaScript)
  • 23 May 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Advanced Installation: Image Pixels (non-JavaScript)

  • Dark
    Light

Article summary

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&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 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


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Q, facilitating knowledge discovery through conversational intelligence