On this page:
Pixel and Universal Pixel overview
Tracking user activities on your website is pivotal for harnessing the power of data for your campaigns. This measurement is made possible through pixel tags, which are strings of HTML code that you can place on your website to measure conversions. You may also see pixel tags referred to as pixels, tracking pixels, or pixel URLs.
Universal Pixels modernize the standard approach to conversion tracking. While traditional methods often require individual pixels on specific conversion pages, this unified solution fires across your entire website via a single JavaScript tag.
Implementing a Universal Pixel allows you to efficiently capture insights into various user behaviors, including signups, page visits, and purchases. This data is then attributed to individual ads or campaigns, helping you better understand performance trends and customer preferences. Because it supports multiple event types—such as tracking when a purchase is completed or a signup is initiated—this site-wide tag is the recommended way to simplify your measurement and attribution strategy.
Refer to Conversions overview for more information, including eligibility criteria.
Test and install pixels overview
You’ll the following steps to measure user activities with Pixel conversions or Universal Pixel conversions:
Obtain the Pixel Script Code or Universal Pixel Code by either creating a new conversion event or copying the code from one that you’ve already created.
Install the pixel directly in a website’s header or integrate it via Google Tag Manager (GTM).
Test the pixel to confirm that it was installed correctly.
Obtain a Pixel Script Code or Universal Pixel Code
When you create a new Pixel conversion or Universal Pixel conversion, you’ll automatically be directed to the newly generated Pixel Script Code or Universal Pixel Code. You can also obtain the code of an existing conversion.
Refer to Create or manage a conversion for step-by-step instructions on obtaining a Pixel Script Code or Universal Pixel Code for a new or existing conversion.
Install a pixel
Choose an installation method
You can choose to install a standard pixel tag or a Universal Pixel in one of two ways: directly on a webpage, or via Google Tag Manager (GTM).
To install a pixel directly on a webpage, you’ll need access to the website’s header section. It plays a pivotal role on any webpage and contains essential information about the site. Depending on your setup, you may need to either locate the header within the website’s code or, if you’re using content management systems (CMS) or web platforms like WordPress, you may have a dedicated header template available to you.
GTM is a powerful tool that simplifies the process of managing various tags—including pixels—without altering your website’s code. It allows you to define when the pixel should fire, and helps reduce the need for manual adjustments to your website’s code each time you’d like to install another pixel or apply any changes.
The choice between webpage installation or GTM integration is ultimately based on your preference. Whether you approach pixel deployment through your website or GTM, you’ll maximize the effectiveness of your tracking efforts and gather rich data insights from user interactions.
Install a pixel on a webpage
More on a website’s header section: The header section immediately follows “<head>” in a website’s code. The “<head>” element is a container that stores information that isn’t directly displayed to the end user. For example, it can include a tracking pixel, define webpage styles and scripts, and determine other metadata. You can locate the “<head>” element by reviewing the code placed between the “<html>” tag and the “<body>” tag. |
Follow these steps to integrate the Pixel Script Code or Universal Pixel Code, and refer to the simplified representation of what your header might look like in the code snippet shown above.
Obtain the Pixel Script Code or Universal Pixel Code and copy it to your clipboard.
Locate the header section of the website’s code. If you’re using a CMS or web platform to manage the site, locate the header template instead.
Locate the section’s closing tag, “</head>”.
Paste the code directly above “</head>”.
By placing the code here, you’ll ensure that the script loads early in the page’s overall rendering process. This allows the pixel to collect data efficiently.
If installed correctly, the pixel will immediately begin firing and collecting user-visit data. However, note that it may take up to two hours for pixel fires to reflect in the IQM platform.
Integrate a pixel using Google Tag Manager (GTM)
To integrate a standard pixel tag or a Universal Pixel using GTM, follow the steps outlined in the Tag Manager Help Center (external link), and refer to a summary of the process below:
Create an account and container.
Sign in with your Google account and follow the prompts to set up an account for your organization. You’ll also set up a container, which includes adding the website’s top-most URL (e.g., www.IQM.com rather than www.IQM.com/company/about-us).Install a web container.
Install the necessary code snippets for the GTM container you created in step 1. Select the container ID and directly from GTM and paste it in your website’s “<head>” tag.
Create a new tag.
Select the GTM container you want to edit and add a new tag. This is where you’ll choose a tag type, paste the pixel code into the HTML field, and choose a name for the tag. In most cases, you’ll choose the “Custom HTML” tag type.
Choose the tracking URL’s triggering settings.
Define the conditions under which your pixel will be activated and capture user conversion. For example, you might choose to capture data when a user views the page or reaches a certain scroll depth.
Verify and publish the tag.
Once you’ve configured your pixel tag and associated triggers, save your changes and publish the new configuration in GTM. This action ensures that the pixel tag becomes active on your website, and allows you to enter a name and description for this new version of your website’s code.
Test a Pixel or Universal Pixel conversion
Test the pixel after you add it to your website to confirm that it’s capturing events as expected.
Follow these steps to test a Pixel Script Code or Universal Pixel Code that you’ve installed:
Open the Conversions app.
Locate the Pixel conversion or Universal Pixel conversion that you’d like to test.
Select Test from the Status column. This will open a Test Pixel Conversion or Test Universal Pixel Conversion pop-up window.
Use the Integration page URL field to add the URL of the webpage where you installed the Pixel Script Code or Universal Pixel Code.
Select Test Pixel. A new tab will open and redirect you to the webpage that you entered in step 4.
Complete the conversion action on the webpage to determine whether or not the pixel is capturing events.
Note that you’ll need to complete steps 5 and 6 in the new browser tab to register the conversion and confirm that you installed the pixel correctly.
Locate additional pixel tag resources
