- Print
- DarkLight
Q Pixel is a universal tracking pixel that can be installed easily on your website. In only a few steps, you can get access to insights about your site's audience and campaign analytics.
What is Q Pixel
Q Pixel is made of two snippets of JavaScript: Base Tag and Event Tag.
The Base Tag is placed between the <head> and </head> tags on all pages of your website.
The Event Tag is additionally placed only on pages related to events that you are tracking.
The Base Tag is the foundation of the Q Pixel. It needs to be added to every page of your website for you to define and track various events across the entire marketing funnel that can be used for planning and forecasting, targeting users in campaigns, or measuring campaign performance.
Get Your Q Pixel Base Tag
To get your Base Tag:
In the top navigation menu, click Q Pixel under Assets.
You can either click on Install Q Pixel or Grab Pixel Code
3. Click Copy Pixel. Your Base Tag should look like this:
<script type="text/javascript">
window._qevents = window._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);
})();
window._qevents.push({
qacct:"p-123456789"
labels:"_fp.event.PageView"
});
</script>
Note: This is a sample only; do not implement this code on your website.
Install the Base Tag on all Pages
Place the Base Tag into your website's <head> section so that it is present on all pages you wish to track. Be sure that the code is deployed to your production environment.
The Base Tag also has an enhanced matching feature that can be added. Further details are here.
Verify Installation
In the Global Navigation, click Q Pixel under Assets.
If the Q Pixel status is Inactive, click Verify URL.
Enter the site URL where the pixel is installed, then click Test Site.
The site will open in a new tab. Once the page loads, close the tab to return to the Quantcast Platform.
If you do not install the Base Tag on all pages of your site, you will not be able to utilize Rule Events to track events without installing additional Event Tags.
Note: If the pixel is detected, the status will change to Active. If the pixel was not detected, check your installation and verify it again.
If you are not seeing any activity and are unable to troubleshoot the issue, contact [email protected] or submit a Help Center request at www.quantcast.com.
Track Events
After you have confirmed that the Q Pixel is firing, follow our guide here for instructions on tracking events.