What this is
A pixel source brings data into Zeotap CDP: the pixels you build here fire from your website, app, ad or campaign and send the resulting events to Zeotap, where they can be segmented and activated. This page covers the implementation half of the job — adding the global properties that every pixel under the source needs, creating a pixel per event or a single generic pixel, masking long pixels with abase64 payload, and copying the finished pixels out of the UI.
The differences between the web image pixel, the app image pixel and the iFrame are covered on Web Pixel/Web iFrame/App Pixel.
Prerequisites
Before you implement the pixels, confirm:
- A Website Events or App Events source already exists, with Web Pixel API, IFrame or App Pixel API chosen as its data source. See Create a Web Pixel/Web iFrame/App Pixel Source.
- You can open that source in the Sources application and reach its IMPLEMENTATION DETAILS tab, where the
write_keyfor the source is shown. - You know which consent signal your pages carry — IAB TCF-based macros, or a simple
optin-yes/nomacro. - For an app pixel, you can supply the MAID (mobile advertising identifier) of the device on every pixel fire. The MAID is mandatory for user identification in the app image pixel.
How pixel sources work
Before you create any pixels, decide what the source represents. You can define a source for any of the following purposes:-
A website or an app and all the events happening on it. For example, pixels are fired on all pages of the sample
website X. - A specific landing page, or a set of landing pages, that you want to collect information from. A landing page can be a subset of a website or an app, separated out because of seasonality or security concerns. For example, pixels are fired on the Level 10 event page, where in-app purchases are made.
- A campaign and all the events relating to that campaign. For example, the launch of a new smartphone model on technology blog websites.
-
A set of campaigns that are logically grouped together, or all of your campaigns and their corresponding events. For example, one source for a single product launch, made up of data from each of the following campaigns:
- Campaign A consisting of celebrity banners
- Campaign B consisting of technical specifications
- Campaign C is key-word based
opt-in-related parameters and macros that make a pixel valid, and they are mandatory for the pixel to function properly:
- IAB’s TCF-based macros for GDPR countries, or simple
optin-yes/nomacros. - Macros for the MAID, in the case of a mobile app pixel.
optin=yes/no or gdpr={euconsent} information in order to process the data. In the case of a mobile app, pixels and MAID are mandatory for user identification — a MAID is a unique pseudo-anonymous identifier tied to a mobile phone. In the case of TCF-based consent signals, Zeotap decrypts the data to check for Publisher consent, because the pixel is placed on your website or app properties.
Create the pixel source
Create the source first, then return here to implement the pixels. In the Sources application under Integrate, click CREATE SOURCE, choose Website Events or App Events as the category, choose Web Pixel API, IFrame or App Pixel API as the data source, name the source, choose the region of upload and create it. The full walkthrough, with screenshots, is on Create a Web Pixel/Web iFrame/App Pixel Source. Once the source exists, open it from the SOURCES listing page to reach the IMPLEMENTATION DETAILS tab used throughout the rest of this page.Implement the pixels
1. Add the global properties
The global properties are applied to all the pixels that you create for that source, so add them before you create any individual pixel.1
Go to the IMPLEMENTATION DETAILS tab of the source.
2
Click ADD GLOBAL PROPERTIES and add the global properties.
3
Specify whether you have
GDPR or TCF-based macros to define the user consent.-
If you have a
GDPRorTCF-based macro, then enter theGDPRmacro and theConsent Stringmacro. -
If you do not have a
GDPRorTCF-based macro, then enter theOpt-Inmacro.
<YOUR_WRITE_KEY> with the write_key shown on the source’s IMPLEMENTATION DETAILS tab.4
Click ADD PROPERTIES. The CREATE PIXEL button is activated once the global properties are added.

2. Create a pixel for each event
After you have added the global properties, create the pixels for your events. Each pixel you create contains the following details:- The
write_keyfor your source - The environment — whether it is mobile app or mobile web
- The global properties and their values
- The
eventTypeadded in the pixel
1
Go to the IMPLEMENTATION DETAILS tab of the source.
2
Click ADD NEW EVENT PIXEL to add the event pixel.
3
A list of events supported by the Zeotap catalogue appears. Select the event that applies to you, or the event that is closest to the one you want to capture.
4
Once you have chosen an event, add the properties that you want to attach to the pixel. For a pixel that has already been created, you can attach more properties to be tracked using the add/update properties section. The properties are grouped as follows:
- ID Properties
- User Properties
- Page Properties
- Campaign Properties
- Events General Properties
- Events Automotive Properties
- Events eCommerce Properties
5
You do not need to send the user’s country. Zeotap resolves the country and region from the IP address of the request, and
country, user_country and country_code_iso3 are excluded from ingestion — see Blacklisted Fields for Data Ingestion.Note:The Click event pixel works differently, because no cookie syncing is performed. The assumption is that you do not want to land the clicker on a campaign page with delays caused by redirection through cookie syncing before the final landing page. Therefore, for the Click event, only the Zeotap cookie is captured in the pixel. To capture other cookies, configure other pixels in the same source, so that those pixels can be used to capture cookie sync through other events.

3. Create a generic pixel
If you created a source to capture all the events on a website, you can create a generic pixel for an event rather than creating one pixel per event.
Note:We recommend that you check the pixel across pages to ensure there is no data loss, because different browsers might restrict different event names.

4. Create masked pixels
In pixels that are created per event, the more properties you add, the longer the pixel becomes. This can be a problem with browsers that accept shorter URL lengths. To counter this, you can create a pixel where all the data is sent inbase64 encoded format. The data takes the form of a JSON payload with the campaign, event, page, user and id objects. The payload is built in real time, then base64 encoded and attached as the value of the &payload= parameter.
Switch to the MASKED tab for each pixel to copy the base pixel that this base64 encoded payload must be attached to. That tab also has a base64 encoder you can use for static payloads — typically for campaigns or campaign landing pages. Static payloads are encoded there and generate the pixel that you can use.
A sample payload — static, or built in real time with actual values — looks as follows:
Code
1
On the page, or when the event is triggered, create the JSON payload.
Code
2
Encode it in
base64.3
Add the encoded payload to the pixel, whether it is an iFrame or an image.
4
The final tag that is fired has the following shape, where the
payload value is the base64 string produced in the previous steps.5. Copy or email the pixels
Once the pixels are created, you can copy them directly from the Sources application, or send an email with the pixels and the Implementation Guide to the Implementation Team, directly from the UI.
Verify the pixels are sending data
Work through the following checks, in order:- The global properties are accepted. On the IMPLEMENTATION DETAILS tab, the ADD GLOBAL PROPERTIES button now reads UPDATE GLOBAL PROPERTIES, and ADD NEW EVENT PIXEL is available.
- The pixel carries a consent signal. The pixel URL you deploy contains either
optin=yes/optin=noor thegdprandgdpr_consentmacros. Without one of them, the endpoint does not process the data. - The source status advances. On the SOURCES listing page, the source moves from Created to Integrated once data starts flowing into it. See Components of the Source Listing Page.
- Records appear in the preview. Open the source’s PREVIEW DATA tab to see the incoming data. See Components of the Preview Data Tab.
Note:The records for the
country and city columns are not ingested from the pixel, because Zeotap resolves the country and city from the user’s IP address automatically. For the complete list of fields excluded from ingestion, see Blacklisted Fields for Data Ingestion.Troubleshoot pixel implementation
FAQ
Where do I find the write key for my pixel?
Where do I find the write key for my pixel?
Open the source from the SOURCES listing page and go to the IMPLEMENTATION DETAILS tab. The
write_key is shown there, along with the pixels created under the source.Do I have to create one pixel per event?
Do I have to create one pixel per event?
No. If the source captures all the events on a website, you can create a single generic pixel — for example Viewarticle — and attach every property you want to capture across the site to it. Create a pixel per event when you want each event to carry its own property set.
Why are the global properties mandatory?
Why are the global properties mandatory?
The global properties carry the consent signal. The pixel endpoint requires either
optin=yes/no or gdpr={euconsent} information in order to process the data, and for a mobile app pixel the MAID macro is what identifies the user.When should I use a masked pixel?
When should I use a masked pixel?
Use a masked pixel when a per-event pixel has accumulated so many properties that its URL length becomes a problem for browsers that accept shorter URLs. The MASKED tab gives you the base pixel and a
base64 encoder for static payloads.How is the user's country determined?
How is the user's country determined?
Zeotap resolves the country and region from the IP address of the request. Country and city values sent in a payload are not ingested — see Blacklisted Fields for Data Ingestion.
Next steps
- Explore Web Pixel/Web iFrame/App Pixel → to compare the web image pixel, the app image pixel and the iFrame before you choose one.
- Explore Create a Web Pixel/Web iFrame/App Pixel Source → if the source does not exist yet.
- Explore Implement the Pixels on a Site, Ad or Campaign → to deploy the finished pixels through a tag manager.
- Explore Components of the Preview Data Tab → to read the records your pixels have sent.
- Explore Blacklisted Fields for Data Ingestion → for the full list of fields that are not ingested from a pixel.