---
title: 'Introduction to the Criteo OneTag'
description: 'Before getting started, please note: OneTag implementation requires website management access (developer, agency partner, or technical team). You must be able…'
language: en
guide: 8fjCDwCENw
updated: 2026-02-22T20:08:27Z
canonical: https://help.criteo.com/kb/guide/en/introduction-to-the-criteo-onetag-8fjCDwCENw/Steps/775595
alternates:
  de: https://help.criteo.com/kb/guide/de/einfuhrung-zum-criteo-onetag-8fjCDwCENw.md
  es: https://help.criteo.com/kb/guide/es/introduccion-a-criteo-onetag-8fjCDwCENw.md
  fr: https://help.criteo.com/kb/guide/fr/a-propos-de-criteo-onetag-8fjCDwCENw.md
  it: https://help.criteo.com/kb/guide/it/introduzione-al-criteo-onetag-8fjCDwCENw.md
  ja: https://help.criteo.com/kb/guide/ja/criteo-tag-8fjCDwCENw.md
  ko: https://help.criteo.com/kb/guide/ko/criteo-onetag-8fjCDwCENw.md
  pt: https://help.criteo.com/kb/guide/pt/introducao-a-criteo-onetag-8fjCDwCENw.md
  pt-BR: https://help.criteo.com/kb/guide/pt-BR/introducao-a-criteo-onetag-8fjCDwCENw.md
  zh: https://help.criteo.com/kb/guide/zh/criteo-onetag-8fjCDwCENw.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/en/introduction-to-the-criteo-onetag-8fjCDwCENw/Steps/775595

# Introduction to the Criteo OneTag

<a id="step-775595"></a>

## Introduction to the Criteo OneTag

> **Tip:** **Before getting started, please note:**  
>
> -   OneTag implementation requires website management access (developer, agency partner, or technical team). 
>     
>
> -   You must be able to edit website code or access configuration tools like Google Tag Manager or e-commerce admin panels. 
>     
>
> -   Standard e-commerce platforms (e.g. Shopify, WooCommerce) offer simplified installation without coding requirements. 
>     
>
> -   Manual tag implementation requires basic HTML and JavaScript knowledge.

Criteo OneTag is a single JavaScript snippet that enables Criteo to collect information about user activity on your website (such as product views, add-to-cart actions, and purchases).  It powers campaign optimization, product recommendations, audience building, and performance measurement.   
 

**Key features of Criteo OneTag include:** 

-   **Advanced:** it triggers automatically visit event to get a stronger user journey. 
    
-   **Lightweight:** loads asynchronously to avoid slowing down your site. 
    
-   **Flexible:** supports advanced use cases like hashed email collection, cross-device tracking, and audience sharing.    
     
    

**Why use OneTag?**  
   
OneTag is essential to activate most of Criteo’s solutions. Without it, Criteo cannot track user behavior and thus cannot: 

-   Deliver personalized ads 
    
-   Optimize bidding strategies 
    
-   Provide accurate reporting and measurement   
     
    

**Value it brings:** 

-   **Smarter targeting:** enables real-time audience segmentation based on user behavior.
    
-   **Better performance:** drives higher ROAS through dynamic creatives and product recommendations. 
    
-   **Greater reach:** supports alternative identifiers (like hashed emails) to improve reach on browsers with limited cookie support (e.g. Safari, Firefox). 
    

   
**How to access it?**    
From the left-hand menu of Commerce Growth, click on **Assets > Events Tracking**.

You can choose how you want to add Criteo OneTag to your website: 

1.  E-commerce platform 
    

2.  Google Tag Manager 
    

3.  Direct implementation   
       
     
    

**How does it work?**   
Every time someone interacts with your site, OneTag captures that action and sends it to Criteo. This data helps Criteo understand each user's behavior in real time.    
   
For example, if a user views a pair of shoes but doesn’t buy them, Criteo can remember that and later show them an ad with that same product — or similar ones — on other websites or apps.   
The more user actions OneTag sees, the more accurate and personalized your ads become. That means your campaigns can focus on the people most likely to click, buy, or return to your site. It also helps improve campaign performance over time, because Criteo’s system keeps learning from each visit.   
  
In short, OneTag helps you turn browsing behavior into smarter advertising — automatically and in real time.

- If "How Criteo OneTag learns from your site’s pages?": [All Criteo OneTag events and parameters](#step-5039941)
- If "How to set-up the Criteo OneTag": [How to set-up the Criteo OneTag](#step-853887)
- If "Test Criteo OneTag integration": [Test Criteo OneTag integration](#step-853890)

<a id="step-5039941"></a>

## All Criteo OneTag events and parameters

<a id="step-vZbzbEeY86-775825"></a>

## All Criteo OneTag events and parameters

> **Tip:** **Note:** Adding OneTag events and parameters directly to a website's source code requires solid technical knowledge or assistance from a developer.

  
This guide outlines all the available OneTag events and parameters you can use on a website. Each event is explained in detail.

> **Tip:** Keep in mind that you likely won’t implement all of these tags. In most cases, you’ll only need a subset that aligns with your specific goals.

- If "Loader script": [Loader script](#step-vZbzbEeY86-868657)
- If "Visit tag": [Visit tag](#step-vZbzbEeY86-868659)
- If "Homepage tag": [Homepage tag](#step-vZbzbEeY86-868656)
- If "Category/keyword search/listing tag": [Category/keyword search/listing tag](#step-vZbzbEeY86-868660)
- If "Travel search tag": [Travel search tag](#step-vZbzbEeY86-868655)
- If "Product tag": [Product tag](#step-vZbzbEeY86-868658)
- If "Add to cart tag": [Add to cart tag](#step-vZbzbEeY86-868653)
- If "Basket/cart tag": [Basket/cart tag](#step-vZbzbEeY86-868654)
- If "Sales tag": [Sales tag](#step-vZbzbEeY86-868652)
- If "Lead tag": [Lead tag](#step-vZbzbEeY86-5039946)
- If "Common parameters": [Common parameters](#step-vZbzbEeY86-5039945)

<a id="step-vZbzbEeY86-868657"></a>

## Loader script

```javascript
<!-- Criteo Loader File --> 
<script   type="text/javascript"   src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID"   async="true" ></script> 
<!-- END Criteo Loader File -->
```

The loader script tag is required to enable the rest of the Criteo OneTag events.

Add the code snippets on the left to the `<head>` section of all the web pages so it avoids being delayed by another synchronously loaded script.

It only needs to be triggered once per page but calling the script multiple times on a single page will not break anything.

| **Variable** | **Description** | **Example** | **Syntax** | **Required** |
| --- | --- | --- | --- | --- |
| `YOUR_PARTNER_ID` | Partner Id is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868659"></a>

## Visit tag

```javascript
<!-- Criteo Visit Tag --> 
<script type="text/javascript">   
window.criteo_q = window.criteo_q || [];   
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";   
window.criteo_q.push(     
  { event: "setAccount", account: YOUR_PARTNER_ID},     
  { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },  
  { event: "setSha256HashedPhoneNumber", phone_number: "##Hashed phone number##" },
  { event: 'setPhoneNumber', phone_number: '##Plain text phone number##' },   
  { event: "setSiteType", type: deviceType},     
  { event: "setCustomerId", id: "##Customer Id##" },     
  { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
  { event: "setZipcode", zipcode: "##Zip Code##" },     
  { event: "viewPage" }   ); 
</script>  <!-- END Criteo Visit Tag -->
```

Add this code snippet to the `<head>` section of all the web pages so it avoids being delayed by another synchronously loaded script.

It only needs to be triggered once per page but calling the script multiple times on a single page will not break anything.

The visit tag helps to capture real landing and bounce rates on your site.

Please fire this event on all pages where no other event is being triggered.  
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more information on the fields.

> **Tip:** **Tip:** For an optimum viewing experience, please expand the table by clicking the expand icon in the top-right corner of the table.

| Fields | Overview | Example | Syntax | Required |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address.  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple<br>sessions for an unauthenticated user. Example: First party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| `YOUR_PARTNER_ID` | partnerID is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868656"></a>

## Homepage tag

```javascript
<!-- Criteo Homepage Tag -->
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];   
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";   window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "viewHome" }   
        );
</script>
<!-- END Criteo Homepage Tag -->
```

Add this code snippets to the `<head>` section of your web site's home page.

Implementing the Criteo OneTag on your **homepage** allows us to track bouncers (users who land on your homepage and leave your site without making a purchase). We will automatically evaluate the value of these users and may display banners with best-seller products.

This tag should fire on the homepage or main landing page of your site to tag users and add them to the target audience.  
  
Fire this event on the homepage or main landing page of your site.   
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| Fields | Overview | Example | Syntax | Required |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address.  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple<br>sessions for an unauthenticated user. Example: First-party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| `YOUR_PARTNER_ID` | partnerID is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868660"></a>

## Category/keyword search/listing tag

```javascript
<!-- Criteo Listing Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";   
    window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "viewList",       
            item: [ "##Product Id 1##", "##Product Id 2##", "##Product Id 3##" ],       
            category: "##Category##",       
            keywords: "##Search Keyword##",       
            page_number: ##Page Number##,       
            filters:[         
                {name: "#Filter Name#", operator: "#Filter Operator#", value: "#Filter Value#"},         
                /* add a line for each additional filter */     
            ]     
        }   
    );
</script>
<!-- END Criteo Listing Tag -->
```

Add these code snippets to the `<head>` section of pages with more than one product being recommended.

This page can be a search results page, a category listing, or a simple page recommending more than one product.

> **Warning:** Please note, this **does NOT mean** you should fire this tag on a product page with a "recommended products" section.

For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| Fields | Overview | Example | Syntax | Required |
| --- | --- | --- | --- | --- |
| Email Address | Plain-text or SHA256<br>Hashed email address  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fb1a26e4bc422aef54eb4 | String | Required |
| Hash<br>Method | The hashing method used for the email.<br>Please put "none" for<br>plaintext emails and<br>"sha256" for SHA265<br>hashed emails | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49f68a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across<br>multiple sessions for an<br>unauthenticated user.<br>Example: First party<br>cookie id | 53e20ea7004247bbdd793b02abcb5d7 | String | Recommended |
| Zip code | User's shipping address zip code | 12345 | String | Recommended |
| Product ID | Unique ID of the product | a123 String Yes | String | Recommended |
| Category | The category of the page<br>that the user is browsing<br>This value should match<br>the category values that<br>are sent in your product<br>catalog | Electronics>Audio>Headphones | String with<br>the same<br>format as<br>your<br>product<br>catalog | Recommended |
| Search<br>keyword | The keyword entered by<br>the user | headphones | String | Recommended |
| Page<br>number | The page number. In the<br>case of a single endless<br>page, this should be set<br>as 1 | 1 | Integer | Recommended |
| Filters | Applied filters on the<br>page. If you have<br>multiple selections of a<br>single filter, use a comma<br>to separate each. See<br>below for details and an<br>example | \[{name: "brand", operator: "eq", value:<br>"Bose, Sony")\] | Array of<br>objects | No |
| `YOUR_PARTNER_ID` | partnerID is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868655"></a>

## Travel search tag

```javascript
<!-- Criteo Search Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";   
    window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "viewSearch",       
            checkin_date: "##Checkin Date##",       
            checkout_date: "##Checkout Date##",      
            nbra: "##Number of Adults##",       
            nbrc: "##Number of Children##",       
            nbri: "##Number of Infants##",       
            nbrr: "##Number of Rooms##"     
        },     
        { event: "viewItem", item: "##Product Id##" }   
    );
</script>
<!-- END Criteo Search Tag -->
```

> **Tip:** **This event is used by travel clients.**
>
> If you do not have a travel site, you can skip this tag.

  
This tag should fire on search result pages after a user has expressed interest in a particular item (flight, train ride, car rental, etc..). It provides our engine with specifics about the customer's interests and items they might also be interested in.  
  
Fire this event on any search result page after a user has entered the details about the search.    
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.  

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| FIELDS | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Email Address | Plain-text or SHA256 Hashed email address  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054026255fb1a26e4bc422oef54eb4 | String | Required |
| Hash<br>method | The hashing method used for the email. Please put<br>"none" for plain text emails<br>and "sha256" for SHA265<br>hashed emails | sho256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49f68a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is  consistent across multiple<br>sessions for on<br>unauthenticated user.<br>Example: First party<br>cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip code | User's shipping address<br>zip code | 12345 | String | Recommended |
| Product ID | Unique ID of the product.    Example: flight ID | a123 | String | Yes |
| Check-in<br>date | Departure date info | "2021-06-01" | MM-DD" | Recommended |
| Check-out date | Return date info | "2021-06-08" | MM-DD" | Recommended |
| Number of adults | The number of adult passengers | 1 | Integer | Recommended |
| Number of children | The number of child passengers | 0 | Integer | Recommended |
| Number of infants | The number of infant passengers | 0 | Integer | Recommended |
| Number of rooms | The number of rooms | 0 | Integer | Recommended |
| `YOUR_PARTNER_ID` | Partner Id is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868658"></a>

## Product tag

```javascript
<!-- Criteo Product Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
    window.criteo_q.push(    
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "viewItem",        
            item: "##Product ID##",        
            price: "##price##",        
            availability: "##Availability##"      
        }   
    );
</script>
<!-- END Criteo Product Tag -->
```

The "product tag" gives Criteo's algorithm a clear flag for the product a user is looking at.

Add this code snippet to the `<head>` section of any product details page.  
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| FIELDS | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address.  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple<br>sessions for an unauthenticated user. Example: First-party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| Product ID | Unique ID of the product | a123 String Yes | String | Required |
| Price | Unit price of the product | 20 | Double | No |
| Availability | Product availability status. 1 if the product is in stock and 0 if the product is out of stock | 1 | Boolean | No |
| `YOUR_PARTNER_ID` | Partner Id is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868653"></a>

## Add to cart tag

```javascript
<!-- Criteo Add to Cart Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
    window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "addToCart", item: [       
            {id: "##Product Id##", price: "##Price##", quantity: "##Quantity##" }     
        ]}   
    );
</script>
<!-- END Criteo Add to Cart Tag -->
```

This tag helps flag users who add items to the cart. This is useful for having a complete abandoned cart audience and not missing users who add to their cart but don't visit the actual cart page.  
  
Add this code snippet to the `<head>` section of the Add to Cart page. Please fire this event after a user adds an item to the cart.  
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| FIELDS | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple<br>sessions for an unauthenticated user. Example: First-party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| Product ID | Unique ID of the product | a123 String Yes | String | Required |
| Price | Unit price of the product | 20 | Double | Required |
| Quantity | The number of a specific item that the consumer added to the cart | 2 | Integer | Required |
| `YOUR_PARTNER_ID` | Partner Id is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868654"></a>

## Basket/cart tag

```javascript
<!-- Criteo Basket / Cart Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
    window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "viewBasket", item: [       
            {id: "##Product Id##", price: "##Price##", quantity: "##Quantity##" }        
            /* add a line for each additional line in the basket */   
        ]}   
    );
</script>
<!-- END Criteo Basket / Cart Tag -->
```

This tag helps flag users who visit the cart page. This is useful for having a completely abandoned cart audience.

Add this code snippet to the `<head>` section of the "cart" page of the website.  
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| FIELDS | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple<br>sessions for an unauthenticated user. Example: First-party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| Product ID | Unique ID of the product | a123 String Yes | String | Required |
| Price | Unit price of the product | 20 | Double | Required |
| Quantity | The number of a specific item that the consumer added to the cart | 2 | Integer | Required |
| `YOUR_PARTNER_ID` | Partner Id is a unique ID that can be found in your Commerce Growth Url. | [https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=**101269**](https://marketing.criteo.com/technical-setup/assets-tags/implementation?advertiserId=93844&partnerId=101269) | String | Required |

This path ends here.

<a id="step-vZbzbEeY86-868652"></a>

## Sales tag

```javascript
<!-- Criteo Sales Tag -->
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];   
    var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
    window.criteo_q.push(     
        { event: "setAccount", account: YOUR_PARTNER_ID},     
        { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },     
        { event: "setSiteType", type: deviceType},     
        { event: "setCustomerId", id: "##Customer Id##" },     
        { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
        { event: "setZipcode", zipcode: "##Zip Code##" },     
        { event: "trackTransaction",       
            id: "##Transaction ID##",       
            new_customer: ##New Customer##,       
            deduplication: ##Deduplication##,       
            item: [        
                {id: "##Product Id##", price: "##Price##", quantity: "##Quantity##" }        
                /* add a line for each additional line in the basket */    
            ]}   
        );
</script>
<!-- END Criteo Sales Tag -->
```

This tag records the conversions that happened on-site. This tag should fire for ALL conversion events regardless of attribution.

Please add this code snippet to the `<head>` section of the Thank you page.  
  
For full information on how to manage your website policy, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075).  
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.  
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.  
  
See the table for more info on the fields.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table.

| FIELDS | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address  <br>  <br>For more information, click [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075). | 79054025255fbla26e4bc422aef54eb4... | \- Plain text<br>Email<br>\- Sha256 and md5 hashed emails | Required |
| Hash Method | The hashing method used for the email.<br>\- Doesn't need to be included for plain text<br>emails<br>\- For sha265 hashed emails: "sha256"<br>\- For md5 hashed emails: 'md5" | sha256 | String | Required |
| Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check [here](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561) for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \-Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
| Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| Transaction ID | Confirmation or Order # | 7654322 | Integer, Unique ID | Required |
| Product ID | Unique ID of the product | a123 String Yes | String | Required |
| Price | Unit price of the product | 20 | Double | Required |
| Quantity | The number of a specific item that the consumer added to the cart | 2 | Integer | Required |

This path ends here.

<a id="step-vZbzbEeY86-5039946"></a>

## Lead tag

```javascript
<!-- Criteo Lead Conversion Tag -->
<script type="text/javascript">
  window.criteo_q = window.criteo_q || [];
  var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  window.criteo_q.push(
    { event: "setAccount", account: ##PartnerID## },
    { event: "setSiteType", type: deviceType},
    { event: "lead", type: "##Lead Type##", value: "##Value##" }
  );
</script>
<!-- END Criteo Lead Conversion Tag -->
```

The Lead tag is the final and most critical event in the measurement suite. It records a completed lead action, such as a form submission or account registration, by firing on the Lead Confirmation or Thank You page. This tag should fire for all conversion events, regardless of attribution, so that every lead can be measured and valued.

-   **Purpose**: provides the definitive signal that a lead has been captured.
    
-   **Impact**: enables accurate campaign reporting, attribution, and ROI measurement, while also feeding back into optimization to increase the likelihood of acquiring more high-quality leads.
    
-   **When to use it**: required for all lead campaigns.
    

  
Please use the following pre-defined Lead Types when setting up campaigns:

| **Event Type** | **Description** |
| --- | --- |
| Signup | User creates an account to register and access a service or platform |
| Subscribe | User starts a paid subscription for a product or service that you offer |
| SubmitForm | User fills out an inquiry or quote form |
| Contact | User clicks or submits a phone, message, email , or chat request |
| StartTrial | User signs up for a free trial |
| Schedule | User books a meeting, visit, or viewing |
| ClickOut | User clicks and redirects to an external site |
| Other | An event that doesn’t fall into one of the other event types. Always use the label “Other”. Do not create variants like Custom2 and Custom\_X. |

> **Tip:** **Note:** You need to replace ##Lead Type## with one of the above values.

Next: [Common parameters](#step-vZbzbEeY86-5039945)

<a id="step-vZbzbEeY86-5039945"></a>

## Common parameters

```javascript
<!-- Criteo COMMON PARAMETERS Tag --> 
<script type="text/javascript">   
window.criteo_q = window.criteo_q || [];   
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";   
window.criteo_q.push(     
  { event: "setAccount", account: YOUR_PARTNER_ID},     
  { event: "setEmail", email: "##Email Address##", hash_method: "##Hash Method##" },  
  { event: "setSha256HashedPhoneNumber", phone_number: "##Hashed phone number##" },
  { event: 'setPhoneNumber', phone_number: '##Plain text phone number##' },   
  { event: "setSiteType", type: deviceType},     
  { event: "setCustomerId", id: "##Customer Id##" },     
  { event: "setRetailerVisitorId", id: "##Visitor Id##"},     
  { event: "setZipcode", zipcode: "##Zip Code##" },     
  { event: "##event name##" }   ); 
</script>  <!-- END Criteo COMMON PARAMETERS Tag -->
```

Below is the list of common event parameters that are supported and can be used on all tag events. The code snippets show how these parameters are added to each event type. 

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Partner Id | A numerical value that identifies your website account on the Criteo network. | 12345678 | Integer | Yes |
| Email Address | Contains either:  <br>-   SHA256 hashed email (in line with industry standards)<br>    <br>-   MD5 hashed email<br>    <br>-   Plain text (if allowed by the law in your country) | 79054025255fb1a26e4bc422aef54eb4... | String (trimmed and lower-cased, encoded in UTF-8)<br>-   [Plain text emails](https://help.criteo.com/kb/guide/en/pass-hashed-emails-through-cross-device-event-cYHxCUc1qv/Steps/1977811,1977816)<br>    <br>-   [Sha256 and md5 hashed emails](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075,1948825) | Recommended |
| Hash Method | The hashing method used for the email. Please put "none" for plaintext emails and "sha256" for sha265 hashed emails. | sha256 | String | Recommended |
| User Phone Number - Plain Text | User Phone Number - Plain Text | +33140402290 | String. Trimmed [E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106562) format. Number starts with "+" sign, includes the country code and there is no leading 0. | No |
| User Phone Number - SHA256 | User Phone Number - SHA256 | f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68 | String. Trimmed [E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106563) format including the country code, without the leading "+" sign and SHA256\-hashed. | Recommended |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49f68a5c8493ec2c0bf489821c21fc3b | String | Recommended |
| Visitor ID | A unique Id that is consistent across multiple sessions for an unauthenticated user. Example: First party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | No |
| Zipcode | Zip code of the shipping address. Value is hashed before storing in our database. We do not store any PII and are compliant with all local regulations. | 12345 | String | Recommended |

This path ends here.

_End of the embedded guide "All Criteo OneTag events and parameters"._

<a id="step-853887"></a>

## How to set-up the Criteo OneTag

Adding Criteo OneTag is quick, easy, and invisible to your users.

> **Tip:** To add Criteo OneTag to your website, use the left navigation panel to navigate to **Assets > Events Tracking.**

You have the following available options to add Criteo OneTag to your website:

1.  E-commerce platform
    
2.  Google Tag Manager
    
3.  Direct implementation
    

> **Warning:** **Important:** Integrating Criteo OneTag on your website through our e-commerce platform plugin does not automatically collect user consent. In countries where applicable regulations require user consent for cookies or similar technologies, you will need to manage this separately.

> **Warning:** Under Criteo Terms and Conditions, in all countries where collecting consent is mandatory for the use of our services, it is our clients and publisher partners' responsibility to collect valid consent of their users prior to any Criteo tags being fired.

> **Warning:** For more information on Criteo's privacy guidelines, [click here](https://www.criteo.com/criteo-privacy-guidelines-for-clients-and-publisher-partners/).

Next: [E-Commerce Platform](#step-2616497)

<a id="step-853890"></a>

## Test Criteo OneTag integration

The final step is to review the Criteo OneTag integration. You want to check that Criteo is collecting events from your website.

> **Tip:** In the Commerce Growth platform, from the left navigation panel, click **Assets** > Events tracking.

1.  **Check the events status**
    
    The Event Status dashboard provides a view of the live tag events that have fired on your site over the last 24 hours, allowing you to catch most errors and correct them.
    
      
    
2.  **Check the consistencies of the events timeline by type**
    
    This graph shows each event that Criteo has recorded on your website (not only Criteo events). If there is a drop in the curves, it means there is an issue that will match an error reported in the Events status table.  
      
    
3.  **Check which tags were installed on your pages and if the correct values are passed into them.**
    
    Use Accurate - Chrome extension
    
    A cool Criteo Utility to Read Any Tracker Easily, specially made for Advertisers. [Download now](https://chrome.google.com/webstore/detail/accurate-for-advertisers/opldbjibdhieaipcfhcdpdahjnhfcafj)

- If "How Criteo OneTag learns from your site’s pages?": [All Criteo OneTag events and parameters](#step-5039942)
- If "How to troubleshoot Criteo OneTag errors?": [How to troubleshoot Criteo OneTag errors](#step-2474481)

<a id="step-2616497"></a>

## E-Commerce Platform

If your website runs on a supported platform, you can set up the Criteo OneTag and your product catalog without having to edit your website source code.

1.  From the Commerce Growth dashboard, select the e-commerce platform on which your website runs.
    
2.  Follow the step-by-step guides provided for each e-commerce platform to install Criteo OneTag successfully.
    

  
**What are the popular e-commerce platforms integrated with Criteo?**

-   Shopify 🌟
    
-   WooCommerce 🌟
    
-   PrestaShop 🌟
    
-   Magento 🌟
    

  
**Complete list of e-commerce platforms integrated with Criteo**

| -   1c-Bitrix<br>    <br>-   3DCart<br>    <br>-   91APP<br>    <br>-   aishipR<br>    <br>-   BigCommerce<br>    <br>-   Cafe24<br>    <br>-   ColorMeShop<br>    <br>-   EC-Cube<br>    <br>-   Ecwid<br>    <br>-   FBits<br>    <br>-   Futureshop<br>    <br>-   Godo<br>    <br>-   Haravan<br>    <br>-   IAIshop<br>    <br>-   Ideasoft<br>    <br>-   Imweb | -   Kobimaster<br>    <br>-   Lightspeed<br>    <br>-   Makeshop<br>    <br>-   Neto<br>    <br>-   OpenCart<br>    <br>-   Sapo<br>    <br>-   Shoper<br>    <br>-   Shopline<br>    <br>-   T-Soft<br>    <br>-   Tamago-repeat<br>    <br>-   Ticimax<br>    <br>-   Tray<br>    <br>-   Volusion<br>    <br>-   VTEX<br>    <br>-   Yahoo |
| --- | --- |

Next: [Google Tag Manager](#step-2616569)

<a id="step-5039942"></a>

## All Criteo OneTag events and parameters

See [All Criteo OneTag events and parameters](#step-vZbzbEeY86-775825) above.

This path ends here.

<a id="step-2474481"></a>

## How to troubleshoot Criteo OneTag errors

<a id="step-JA9r8CLYjC-1777861"></a>

## How to troubleshoot Criteo OneTag errors

The Criteo OneTag, also known as Events Tracking, need to be added on each page of your website in order to pass data to Criteo. The setup of your events directly impacts the performance of your campaigns.  
  
To check that Criteo OneTag is set up properly, open in the left menu **Assets > Events tracking.** Here, you will have an overview of the current status of the Criteo OneTag.

If you are experiencing an issue, you can use the graphs on the **Events timeline by type** section to see when the issue occurred and for how long.

Next: [Event Status](#step-JA9r8CLYjC-1812351)

<a id="step-JA9r8CLYjC-1812351"></a>

## Event Status

There are three possible statuses:

1.  **Issue:** this means that there are errors that you should want to fix as soon as possible because it can negatively impact the performance of your campaigns.
    
2.  **Optimization:** this means that you may want to review how the tag was set up and do some optimizations to drive more performance to your campaigns.
    
3.  **Working:** All good, you are all set!
    

To download the Criteo OneTag report for any event flagged as having issues or ready to be optimized, click the download icon under **Actions** column.

1.  In the "Top non-displayable" tab in the downloaded .xlsx file, check columns H and I for more details about the error.
    
2.  Request support from Criteo if you need help to solve the issues.

Next: [Criteo OneTag report](#step-JA9r8CLYjC-1812350)

<a id="step-JA9r8CLYjC-1812350"></a>

## Criteo OneTag report

When downloaded, the Criteo OneTag report gives details on whether or not events are properly set up on your website.  
  
The Excel file contains information about:

-   **Last events listing**: available for every page type of your website (Homepage, Listing, Product, Basket, Add to cart, Sales confirmation)
    
-   **Top non-displayable Product IDs**: available for Search Listing, Product Listing, Basket, and Sales Confirmation pages
    
-   **Duplicated Transactions IDs**: available for the Sales Confirmation page only
    
    | **Report tab** | **Description** | **Details included** |
    | --- | --- | --- |
    | Last events received | In this report we log the details of a sample of events recorded during the last 48 hours. | -   Time of the event<br>    <br>-   Mandatory parameter values received, like product IDs, email address or site type<br>    <br>-   Additional data: other optional parameters<br>    <br>-   Page URL: where the Criteo OneTag was fired<br>    <br>-   User: this specifies whether the Criteo OneTag was fired by you or someone else |
    | Top non-displayable Product IDs | This report calculates your Feed and Tag quality. The quality represents Criteo's ability to correlate the product information passed through the events with the information provided in your product catalog.   <br>  <br>The quality is calculated from the percentage of the last events that had product IDs match your product catalog. Products set as "non-displayable" in the catalog will be counted as not available in the feed. <br>Tip: Try to keep this number above 80% at all times. If the quality falls below 60%, it will impact the performance of your campaign. | -   Product ID received by the Criteo OneTag<br>    <br>-   Number of events received on this ID (in decreasing order)<br>    <br>-   Impact on catalog and the implementation quality of Criteo OneTag:<br>    <br>    -   Possible gain on tracker and catalog quality if this product was made displayable<br>        <br>    -   New catalog quality if this product was made displayable (= current catalog & tracker quality + gain)<br>        <br>-   Reason why the product is not displayable:<br>    <br>    -   Is in the catalog? (yes/no) <br>        <br>    -   Is blacklisted? (yes/no)<br>        <br>    -   Is recommendable? (yes/no) <br>        <br>    -   Is in stock? (yes/no)<br>        <br>    -   Missing mandatory info? <br>        <br>    -   Missing mandatory info details? |
    | Duplicated Transaction IDs | This report logs the details of the transactions with the same ID. | -   Transaction ID<br>    <br>-   Number of events received<br>    <br>-   First time we received an event with this Transaction ID<br>    <br>-   Last time we received an event with this Transaction ID |

- If "Events: Very low number of hits or no hits": [Events: Very low number of hits or no hits](#step-JA9r8CLYjC-1826966)
- If "Common Event warnings": [Common Event warnings](#step-JA9r8CLYjC-1812455)
- If "Common OneTag errors": [Common OneTag errors](#step-JA9r8CLYjC-1847949)

<a id="step-JA9r8CLYjC-1826966"></a>

## Events: Very low number of hits or no hits

Each time the Criteo OneTag is fired, Criteo receives an event; this is called a hit. If no hits are received by Criteo, it means there is an issue with the implementation of the Criteo OneTag.

The number of hits per page recorded by the Criteo OneTag on your website (Homepage, Search Listing, Product, Basket, and Sales Confirmation pages) must match or be similar to the number of hits/page views as recorded by your Analytics tool. If there is a discrepancy it means not all page views are being recorded correctly and you will need to perform the following troubleshooting steps.

Next: [Check if Criteo OneTag is properly set up](#step-JA9r8CLYjC-1826965)

<a id="step-JA9r8CLYjC-1812455"></a>

## Common Event warnings

The table below provides you with information about the warnings related to events, their possible cause, and solution.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table. You can also search for your error by using the shortcut Command+F on macOs or Control+F on Windows.

| **Warning message** | **Overview** | **Solution** |
| --- | --- | --- |
| #### Price discrepancies | This warning message is shown when the prices implemented in the Criteo OneTag differ<br>from the prices of the corresponding products in your product feed.<br>The product price passed on the Criteo OneTag must exactly match the product price<br>used in your product feed and displayed on your website.<br>The product price is required for the viewBasket and trackTransaction events. | Check that the product price implemented in the Criteo OneTag is the price in your<br>product feed.<br>If a user is on the basket page and the product price for A123 is 101.99 in your product<br>data feed, the viewBasket event in the Criteo OneTag should look like this:<br>**{event: "viewBasket'" item: \[{ id: "A123", price: "101.99", quantity:"1" }\]**<br>**}**<br>If you implement the Criteo OneTag via Google Tag Manager, check that your variables<br>are correctly defined and the Google Tag Manager dataLayer contains the data used in<br>those variables. |
| #### Hardcoded quantity | You'll see this warning message if you don't implement the Criteo OneTag quantity<br>parameter to dynamically pass the quantity when the event fires. It’s likely that the<br>value of the quantity is being hardcoded on the Criteo OneTag exactly as it appears in<br>the Integrate Platform. | Make sure the quantity has been dynamically implemented on the Criteo OneTag for basket and confirmation pages.<br>For example, if a user is on a basket page and the user has four units of item A123 in their cart, the viewBasket event in the Criteo OneTag should look like this:<br>**{event: "viewBasket", item:**<br>**\[{id: "A123", price: 29.95, quantity: 4 }\]**<br>**}**<br>If you implement the Criteo OneTag via Google Tag Manager, check that your variables<br>are correctly defined and the Google Tag Manager dataLayer contains the data used in<br>those variables. |
| #### Hardcoded price | This warning message appears when you are not implementing the Criteo OneTag<br>price parameter dynamically. The value of the price could be hardcoded on the Criteo<br>OneTag exactly as it appears in the Integrate Platform.<br>Remember, the price passed on the Criteo OneTag must be the unit price of the product on your site. The price parameter is required for the viewBasket and<br>trackTransaction events. | Check the price that is dynamically implemented on the Criteo OneTag for basket and<br>confirmation pages and make sure the price is the unit price of the product on your site<br>For example, if a user is on a basket page and the price for the product displayed on<br>that particular page is 29.95, the viewBasket event in the Criteo OneTag should look<br>like this:<br>**{ event: "viewBasket', item:**<br>**\[fid: "A123", price: 29.95, quantity: 1 }\]**<br>**}**<br>However, if the user selects a different product with a different price - for example<br>product is B456 with unit price 45.99 - the viewBasket event in the Criteo OneTag<br>should look like this:<br>**{event: "viewBasket”, item:**<br>**\[fid: "B456", price: 45.99, quantity: 1}\]**<br>**}**<br>if you implement the Criteo OneTag via Google Tag Manager, check that your variables<br>are correctly defined and the Google Tag Manager dataLayer contains the data used in<br>those variables. |
| #### Hardcoded email address | If you see this warning message, it's because all the events are showing the same email<br>address. It means that you've hardcoded "username@domain.com" as the email address in<br>the setEmail events or any other hardcoded email address.<br>The email address you send in the Criteo OneTag must be unique for every user on your<br>site and not hardcoded. The email address is the one that the user logs in to your site with or the one entered at the checkout on your site. | You'll need to send the user's email address in the setEmail event. We recommend you<br>send an email address that has already been hashed via a dedicated function (using an<br>SHA256 algorithm). Check the example below for a SHA256 hashed email sent in the<br>setEmail event:<br>**{ event: "setEmail", email:**<br>**"46a828eb4c5d239d631a15094c934cada1812d5fc22cd14155ca684832a70938",**<br>**hash\_method: "sha256" },**<br>If you're unable to pass an unhashed or hashed email address, just pass us an empty<br>string:<br>**{ event: "setEmail", email: "" },** |
| #### Hardcoded product ID | This warning message appears when you hardcode the product ID from the example<br>in the guide.<br>These are incorrect:<br>**{event: "viewltem", item: "product\_id" }**<br>**{ event: "viewList", item:\[ "product\_id\_1" , "product\_id\_2" , "product\_id\_3" \]}**<br>Remember, the Product ID passed on the Criteo OneTag must exactly match the one used in your product data feed. We need the Product ID to track: viewltem, viewList,<br>viewBasket, and trackTransaction events. | Make sure the Product ID is dynamically implemented in the Criteo OneTag for the listing, product, basket, and confirmation pages. The Product ID passed through these events should exactly match the Product ID used in your product data feed.<br>If a user is on a product page and the Product ID for the product displayed on that<br>particular page is A123, the viewltem event in the Criteo OneTag should look like this:<br>**{event: "viewltem", item: "A123" }**<br>If the user is on a listing page and the first three Product IDs for the products listed on<br>the page are B456, C789, D101, the viewList event in the Criteo OneTag should look<br>like this;<br>**{ event: "viewList’, item: \["B456", "C789", "D101"\]}**<br>if you implement Criteo OneTag via Google Tag Manager, check that your variables are correctly defined and the Google Tag Manager dataLayer contains the data used in those variables. |
| #### No event received with site\_type="m" | You received this warning message because no event has been received with<br>site\_type= 'm". Either your mobile website is not set up with Criteo OneTag, or it is not<br>set up with the correct information sent. | Check that the site type in the Criteo OneTag is correctly populated based on the device type. |
| #### Warning - No event received with site\_type=“t” | You received this warning message because no event has been received with<br>**site\_type="t"**. Either your tablet website is not set up with Criteo OneTag, or it is not set up with the correct information sent. | Check that the site type in the Criteo OneTag is correctly populated based on the device type. |
| #### Inconsistent price info in events and feed | You received this warning message because the price info in the tags does not match<br>the price info in your product feed. The price in the event needs to be consistent with<br>the price in your product feed and the price displayed on your website. | Check that the prices passed in the tags are correct and that the prices in your product<br>feed are the same as on your website. If the price of a product on your website is $25,<br>then the price in the event and in the product feed should be $25. |
| #### Optional info missing: parameter missing | This warning appears if there are missing optional parameters. Although optional,<br>all data sent in the trackers are used to optimize the performance of the campaign. | Check that all optional parameters are included in the trackers. |
| #### Optional info not properly formatted | This warning appears if there are formatting errors in optional info. Although optional,<br>all data sent in the trackers are used to optimize the performance of the campaign. | Check that all optional parameters are included in the tracker. |
| #### Optional info missing: parameter sent with empty value | The tracker is firing with an empty value for an optional parameter. Although optional,<br>all data sent in the trackers are used to optimize the performance of the campaign. | Check that all optional parameters are sent with a correct value, or simply left as an empty string. |
| #### Not enough data to compute reliable feed and events quality | Criteo must log a minimum number of hits from the Criteo OneTag in order to assess<br>the quality of the feed and event implementation. | Tag quality is measured by taking into consideration multiple variables such as number<br>of hits on each Criteo OneTag per page (Homepage, Search Listing, Product Listing,<br>Basket, and Sales Confirmation), along with any warnings and errors. The number of hits per page where the Criteo OneTag is implemented on your site<br>(Homepage, Search Listing, Product Listing, Basket, and Sales Confirmation pages)<br>must match the number of hits/page views as recorded by your main analytics package (such as Google Analytics). |

This path ends here.

<a id="step-JA9r8CLYjC-1847949"></a>

## Common OneTag errors

The common OneTag errors can be classified into four categories.

Click on each tile for more information about the errors and the solutions.

- If "Dataset related errors": [Dataset related errors](#step-JA9r8CLYjC-1850521)
- If "Campaign or Adset related errors": [Campaign or Adset related errors](#step-JA9r8CLYjC-1850520)
- If "Catalog related errors": [Catalog errors](#step-JA9r8CLYjC-1847950)
- If "Audience related errors": [Audience errors](#step-JA9r8CLYjC-1847951)

<a id="step-JA9r8CLYjC-1826965"></a>

## Check if Criteo OneTag is properly set up

Browse your website's pages, then do the following checks:

**Is the Criteo loader being executed?**

Without the loader, Criteo OneTag cannot be fired.

1\. Open your browser Network panel.

If you are using Google Chrome, Mozilla Firefox, or Internet Explorer, right-click on your browser page and select "Inspect", then select the **Network** tab as shown in the attached screenshot

2\. Look for Criteo related network activity. Press **Cmd or Ctrl+F** to open the search bar.

Next: [Untitled step](#step-JA9r8CLYjC-1826963)

<a id="step-JA9r8CLYjC-1850521"></a>

## Dataset related errors

The table below provides information about the possible Dataset related errors, their cause, and solution.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table. You can also search for your error by using the shortcut Command+F on macOS or Control+F on Windows.

| **Error message** | **Overview** | **Solution** |
| --- | --- | --- |
| #### Account ID is missing or empty | Criteo requires specific dynamic and static parameters to be passed into the Criteo<br>OneTag, so that user browsing intent can be tracked and the Criteo Engine can build relevant product recommendations to be displayed on the Criteo creatives (banners).<br>The Account ID is a common across all the different pages where the Criteo OneTag is<br>implemented. The Account ID is provided to you during the initial setup of the Criteo<br>OneTag and is your unique identifier. | Verify the corresponding line in the Criteo OneTag, and ensure that the Account ID that<br>was provided to you is properly filled. If your Account ID is 1234 then the Criteo<br>OneTag should look like this:<br>**{ event: "setAccount", account: 1234 }** |
| #### No hit in the last 1h, 24h, 48h | You are seeing this error because one or more Criteo's events have not received a hit since at least 1 hour or more. | **Step 1**<br>-   Open your browser Network panel and search for **ld.js.**<br>    <br>-   If you don't find ld.js, reload the page and try to look for it again.<br>    <br>**Step 2**<br>-   Still in your browser Network panel, search for **"event?a="**<br>    <br>-   If you don't find "event?a=", reload the page and try to look for it again.<br>    <br>-   If you still can't find "event?a=" then Criteo OneTag is not being executed and you have to set up Criteo OneTag again. To proceed click on "Reconfigure tag" blue button in top right corner of **Assets > Events tracking** page<br>    <br>**Common issue**<br>-   Account parameter has been modified: Double check that the account parameter is exactly the same as the one you get from the Commerce Growth<br>    <br>For more information, see [Events: Very low number of hits or no hits](https://help.criteo.com/kb/guide/en/criteo-onetag-troubleshooting-JA9r8CLYjC/Steps/1777861,1812351,1812350,1826966). |
|  |  |  |
| #### \> Error {mandatory info} missing: parameter missing<br>#### \> Error {mandatory info} missing: parameter sent with an empty value | The tracker is not firing correctly because one or more pieces of mandatory information<br>are sent with a missing parameter. Mandatory info includes product IDs, prices,<br>quantities, transaction ID, account ID, and site type. | Check that<br>\> The Criteo OneTag on the homepage includes:<br>-   Your unique account ID<br>    <br>-   The correct site type (or "d" as a harcoded value)<br>    <br>\> The Criteo OneTag on the search listing page includes:<br>-   Your unique account ID<br>    <br>-   The correct site type (or "d" as a harcoded value)<br>    <br>-   Three product IDs<br>    <br>\> The Criteo OneTag on the product page includes:<br>-   Your unique account ID<br>    <br>-   The correct site type (or "d" as a harcoded value)<br>    <br>-   The product ID of the product shown on the product page<br>    <br>\> The Criteo OneTag on the basket page includes<br>-   Your unique account ID<br>    <br>-   The correct site type (or "d" as a harcoded value)<br>    <br>-   The product ID, price, and quantity of every product in the basket<br>    <br>\> The Criteo OneTag on the sales confirmation page includes<br>-   Your unique account ID<br>    <br>-   The correct site type (or "d" as a harcoded value)<br>    <br>-   The transaction ID<br>    <br>-   The product ID, price, and quantity of every product purchased by the customer |
| #### Error {mandatory info} info not properly formatted | The tracker is not firing correctly because one or more pieces of mandatory information<br>are not formatted properly. Mandatory info includes product IDs, prices, quantities, transaction ID, account ID, and site type. | Make sure all parameters are entered in the correct format. |
| #### All events received in the last 1h are on the same product ID | You are receiving this error because the product ID sent in the trackers is the same for<br>all events received in the last 1 hour. | Check that you are providing us with the ID associated with the product displayed on<br>the page via the Criteo OneTag. |
| #### All events received in the last 24h are on the same product ID | You are receiving this error because the product ID sent in the trackers is the same for<br>all events received in the last 24 hours. | Check that you are providing us with the ID associated with the product displayed on<br>the page via the Criteo OneTag. |
| #### Transaction ID must be unique | You're receiving this error message because one or more Transaction IDs were duplicated on the Sales Confirmation page. This means there is an issue with either the<br>way you are sending us the Transaction ID or with how we are recording the sale. In order to ensure accurate sales reporting, we need a unique Transaction ID with every sale. | Check that you're passing the Order/Confirmationumber from the sale. If you are<br>unable to pass us this information, provide a unique or random number instead. |
| #### Alternate Ids Wrong Format | This error can occur when the Alternate Ids do not match Criteo specifications. Ensure the Alternate Ids and the value of each property meets the requirements. | The alternate ID should have the following format "alternate\_ids": `[`<br>`{`<br>`"type": "email",`<br>`"hash_method": "md5",`<br>`"value": "__MD5_EMAIL_REMOVED__"`<br>`}`<br>And the value of each property, if it exists, should be a string and the hash\_method should be one of the following values:<br>`"md5", "none","sha256_md5", "s2m", "sha256"` |
| #### Client IP Empty | This error occurs if the client IP parameter is included in the event payload, but its value is empty. | Ensure the value is entered and is correct in the event payload. |
| #### Client IP Missing | The client IP parameter is not included in the event payload. | Ensure the client IP parameter is included in the event payload and its value is correct. |
| #### Client IP Wrong Format | The client IP parameter is included in the event payload, but its value is not. | Ensure the value is in IPv4 or IPv6 format. |
| #### Event Type Missing | The Event Type parameter is not included in the event payload. | The eligible event types are<br>`"viewBasket", "setData", "callDising", "viewHome", "appDeeplink", "appLaunch" , "viewItem", "viewList", "viewListing", "viewProduct", "viewPage", "viewSearch", "trackTransaction", "addToCart", "setEmail", "setHashedEmail", "vb", "exd", "vh", "ad", "al", "vl", "vp", "vpg", "vs", "vc", "ac", "ce", "id", "addPaymentinfo", "completeRegistration", "login", "startTrial", "addToWishList", "beginCheckout", "earnVirtualCurrency", "generateLead", "levelUp", "cancelTransaction", "selectProduct", "spendVirtualCurrency", "subscribe", "beginTutorial", "completeTutorial", "unlockAchievement", "playMedia", "nearStore", "visitStore"` |
| #### Event Type Wrong Format | The event type is not being passed in a valid format. |  |
| #### Extra Data Wrong Format | The extra data format is included in the event payload but is invalid (either the type or value). | To fix, ensure the value and the type are not empty and passed as "string", "integer", "float", or "date". <br>Then, work with your Criteo representative to ensure the extra\_data is also declared correctly internally. |
| #### Timestamp Wrong Format | The timestamp parameter is included in the event payload, but its value could not be parsed as a date. | Valid formats are:  <br>  <br>`UNIX timestamp   yyyy'-'MM'-'dd'T'HH':'mm':'ssZ   yyyy'-'MM'-'dd'T'HH':'mm':'ssz   yyyy'-'MM'-'dd'T'HH':'mm':'sszzz` |
| #### Response Type Wrong Format | The response\_type parameter is in the wrong format. | It should be in .js or .gif |
| #### Request Wrong Format | The request is in the wrong format. | This could be a JSON parsing error. Ensure the parsing meets standards. |
| #### Language Empty | The account object's language parameter is included in the event, but its value is empty. | To fix this, include the language parameter in the event. |
| #### Language Wrong Format | The account object's language parameter is included in the event payload but its format is wrong. | The Language value is not a valid ISO 639 two-letter language code. |
| #### Invalid Country Or Language For Account | An invalid country or language for the account is being passed. | To fix this, contact your Criteo representative to compare with your partner app mapping. |

This path ends here.

<a id="step-JA9r8CLYjC-1850520"></a>

## Campaign or Adset related errors

The table below provides information about the possible Campaign or Adset related errors, their cause, and solution.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table. You can also search for your error by using the shortcut Command+F on macOS or Control+F on Windows.

| **Error message** | **Overview** | **Solution** |
| --- | --- | --- |
| #### Unrecognized event type | You may get this error when one of the events in the Criteo OneTag is not recognized or is mistyped | Criteo OneTag events are predefined and can't be changed.<br>The event names accepted are the following:<br>\* setAccount<br>\* setEmail<br>\* setSiteType<br>\* viewHome<br>\* viewList<br>\* viewltem<br>\* viewBasket<br>\* trackTransaction<br>Any event outside of this list will not be recognized. Ensure you didn’t alter the<br>event names in the Criteo OneTag template. |
| #### Attribution Channel Empty | The attribution\_channel parameter can be used in the Conversion tag to assign the attribution source and percentage of attribution. This issue occurs if the  attribution\_channel parameter is included in the event payload, but its value is empty. | Make sure the attribution\_channel parameter value is entered correctly and that the field is not left empty. |
| #### Attribution Channel Missing | The  attribution\_channel  parameter can be used in the Conversion tag to assign the attribution source and percentage of attribution. This error occurs if the attribution\_channel parameter is not included in the event payload. | Make sure the attribution\_channel parameter is included in the event. |
| #### Attribution Channel Wrong Format | The attribution\_method parameter can be used in the Conversion tag to assign the attribution source and percentage of attribution. | It should be passed as "EMAIL", "SEM", or "DISPLAY". |
| #### Attribution Method Wrong Value | This error occurs if attribution\_method parameter is included in the event payload, but its value is not supported.<br>Allowed values are deterministic, fingerprint, and probabilistic. |  |
| #### Attribution Payload Wrong Format | The payload is generated by Criteo, then propagated to third parties (e.g., MMP, Audience partner, etc.), and then read back by Criteo. | If data collection is connected via the third party, please check that integration with the third party works well. |
| #### Site Type Empty | The site\_type parameter is present in the event payload, but its value is empty. | Site\_type should be one of the following:<br>\[d, m, t, aa, aios, instore\] |
| #### Site Type Missing | The site\_type parameter is not included in the event payload. |  |
| #### Site Type Wrong Format | The site\_type parameter is present in the event payload, but its value is not accepted. |  |

This path ends here.

<a id="step-JA9r8CLYjC-1847950"></a>

## Catalog errors

The table below provides information about the possible Catalog related errors, their cause, and solution.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table. You can also search for your error by using the shortcut Command+F on macOs or Control+F on Windows.

| **Error message** | **Overview** | **Solution** |
| --- | --- | --- |
| #### All events are received on the same product ID | If all events are showing the same Product ID, you are probably not populating the<br>Criteo OneTag parameter dynamically. It is likely that the value of the product ID is<br>being hardcoded directly on the Criteo OneTag.<br>The Product ID passed on the Criteo OneTag must be exactly the same as the Product<br>ID used in your product data catalog. | Check that the Product ID passed on the Criteo OneTag exactly matches the Product<br>ID that is used in your product data catalog<br>**Example**<br>If a user is on a Product page and the Product ID for the product displayed on that<br>particular page is A123, the viewltem event in the Criteo OneTag should look like this:<br>**{ event: "viewltem", item: "A123" }**<br>However, if the user is on a different Product page and the Product ID for this other<br>product is B456, the viewltem event in the Criteo OneTag should look like this:<br>**{ event: "viewltem", item: "B456" }**<br>If you are implementing the Criteo OneTag via Google Tag Manager, check that your<br>variables are correctly defined and that the Google Tag Manager dataLayer contains<br>the required information used in those variables. |
| #### Filter Name Missing | The filter name is missing (null or empty).<br>This parameter is used to restrict the response to products that have a certain attribute with the exact value in the feed. | To fix this, please contact your Criteo representative. |
| #### Filter Operator Missing |  |  |
| #### Filter Value Missing |  |  |
| #### Product ID Empty | The product ID parameter is included in the event payload, but its value is empty. | To fix this, please include a product ID that matches the one sent in your product feed. |
| #### Product ID Missing | The product ID parameter is not included in the event payload. |  |
| #### Product ID Wrong Format | The product ID parameter is included in the event payload, but its format is incorrect. | Product ID parameter has a max. ID length of 240 characters. |
| #### Product Not Valid In Feed | The product ID in the event payload could not be found in the product catalog or is not recommendable. | To fix this, please contact your Criteo representative. |
| #### Product Price Empty | The product price parameter is included in the event payload, but its value is empty. | The product price is required for the "Add to Cart", "Basket", and "Conversion tags". |
| #### Product Price Missing | The product price parameter is not included in the event payload. |  |
| #### Product Price Wrong Format | The product price parameter is included in the event payload, but its format is incorrect. | It must be a positive number. |
| #### Product Quantity Empty | The product quantity parameter is included in the event payload, but its value is empty. | Product quantity is required for the "Add to Cart", "Basket", and "Conversion tags". |
| #### Product Quantity Missing | The product quantity parameter is not included in the event payload. |  |
| #### Product Quantity Wrong Format | The product quantity parameter is included in the event payload, but its format is incorrect. | Product quantity must be passed as a positive integer. |
| #### \> Price Discrepancy Too High<br>#### \> Inconsistent Price Info in Tags and Feed | The prices implemented in the Criteo OneTag are different from the corresponding prices in the feed. | The product price passed on the Criteo OneTag must exactly match the product price used in your product feed and what is displayed on your website.<br>The product price is required for the "Add to Cart", "Basket", and "Conversion tags". |

This path ends here.

<a id="step-JA9r8CLYjC-1847951"></a>

## Audience errors

The table below provides information about the possible Audience related errors, their cause, and solution.

> **Tip:** **Tip:** For optimum viewing experience, please expand the table by clicking the expand icon on the top-right corner of the table. You can also search for your error by using the shortcut Command+F on macOS or Control+F on Windows.

| **Error message** | **Overview** | **Solution** |
| --- | --- | --- |
| #### Device Info Wrong Format | This error occurs if Device Info is null or not valid | Ensure Device Info contains one Key-value of<br>-   OS\_FAMILY<br>    <br>-   OS\_NAME<br>    <br>-   OS\_VERSION<br>    <br>-   PLATFORM<br>    <br>-   DEVICE\_MODEL<br>    <br>-   DEVICE\_MANUFACTURER |
| #### User Identifier Empty | The event payload contains the SetEmail event, but its value is empty. | SetEmail should be passed in the conversion event and any other events where it can pass. |
| #### User Identifier Missing | The event payload does not contain a SetEmail event. | SetEmail should be passed in the conversion event and any other events where it can pass. |
| #### User Identifier Wrong Format | The event payload contains the SetEmail event, but its hash\_method is either an empty string or not a valid hash method. | SetEmail should be passed in the conversion event and any other events where it can pass. |
| #### Transaction Value Invalid | The transaction ID parameter in the event payload is passed as a negative number. | It must be passed as an integer > 0 |
| #### Transaction ID Empty | The transaction ID parameter is included in the event payload, but its value is empty. | Include the value of the transaction ID |
| #### Transaction ID Missing | The Transaction ID parameter is not included in the event payload. | Transaction IDs should be passed for each conversion event. |
| #### Mobile Identifier Missing | The event payload does not contain an IDFA, GAID, or GUM ID. | Make sure the event payload contains an IDFA, GAID, or GUM ID. |

This path ends here.

<a id="step-JA9r8CLYjC-1826963"></a>

## Untitled step

1.  Search "criteo" and try to find a network activity entry like the one below showing ld.js
    
2.  If you don't find this entry, reload the page and try again
    

5\. If you still do not see the **ld.js** entry you must double check:

-   If you are implementing the Criteo OneTag directly into the source code of your website. You must check that the JavaScript loader  <script type="text/javascript" src="//[dynamic.criteo.com/js/ld/ld.js?a=YOUR\_PARTNER\_ID](https://dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID)" async="true"></script> is included at the beginning of the Criteo OneTag and that it's not being blocked by any other element of the code.
    
-   If you are implementing the Criteo OneTag via Google Tag Manager, check that your triggers are correctly defined and the Google Tag Manager dataLayer contains the required information used in those triggers.
    
-   If you are implementing the Criteo OneTag through a plugin or an ECP (e.g. Shopify), ensure you have the most up-to-date version, and that you have followed the installation instructions correctly.

Next: [Untitled step](#step-JA9r8CLYjC-1826964)

<a id="step-JA9r8CLYjC-1826964"></a>

## Untitled step

After verifying that the loader is executing correctly, you need to perform a similar check to confirm that there is an event call being made to Criteo.

1\. Using the network panel, search for an entry starting with "event?a=" as shown in the image below. If you don't find this entry, reload the page and repeat the search 

2\. If you still can't find the entry starting with "event?a=" it means that the Criteo OneTag is not being executed and you will need to review the implementation of the Criteo OneTag.  

**Common issues:** 

-   Account parameter has been modified: Double check that the account parameter is exactly the same as the one you get from Commerce Growth.
    

Account ID declaration:

 { event: "setAccount", account: YOUR UNIQUE ACCOUND ID },

-   JavaScript errors: missing brackets, square brackets, quotes, or commas: If any of these elements or operators are not used correctly, the Criteo OneTag code will be broken, generating JavaScript errors. Check that all parentheses "(" brackets "{" and square brackets "\[" and quotes are entered exactly as shown in the Criteo OneTag code that you get from Integrate platform. Errors can be found around the criteo\_q.push() part of the code.
    

**Troubleshooting steps summary**

1.  Check if the Criteo loader is firing correctly (ld.js in Network tab)
    
2.  Check if the Criteo OneTag tags are firing correctly (event?a=… in Network Tab)
    
3.  Check that the JavaScript code is exactly the same as shown in the Integrate platform
    

If you are still facing issues, please contact us with the results of the Troubleshooting steps above. Sharing the screenshots of the Network tab and the OneTag JavaScript code can help speed up the resolution process.

This path ends here.

_End of the embedded guide "How to troubleshoot Criteo OneTag errors"._

<a id="step-2616569"></a>

## Google Tag Manager

You can add Criteo OneTag through Google Tag Manager.

  
**Requirements**

You'll need to:

1.  Have or create a Google Tag Manager account and container.
    
2.  Install a Google Tag Manager container on your website.
    
3.  Add data layer code to your web page.
    
4.  Add Criteo OneTag.
    
5.  Verify the tag works.
    

> **Tip:** To learn how to set up and install Google Tag Manager, [click here](https://support.google.com/tagmanager/answer/14842164?visit_id=639073867437455519-2505381059&hl=en&ref_topic=14841964&rd=2).

  
**What's a data layer?**

A data layer is a JavaScript object that is used to pass information from your website to your Tag Manager container. You can then use that information to populate variables and activate triggers in your tag configurations.

The content of the data layer will determine what information is transmitted to Criteo through the Criteo OneTag.

> **Tip:** To learn more about the data layer, [click here](https://developers.google.com/tag-platform/devguides/datalayer?hl=en&visit_id=639073867155293200-4223779598&rd=1).

  
**What is the best method to add Criteo OneTag via GTM to your website?**

You can implement Criteo OneTag through Google Tag Manager in two ways:

1.  If your website already sends GA4 enhanced ecommerce events, choose the standard path for a fast setup.
    
2.  If your website uses a custom or incomplete data layer (or none), pick the adapt path and wire our tags to your triggers and variables without changing your site code.

Next: [Direct Implementation](#step-2616738)

<a id="step-2616738"></a>

## Direct Implementation

> **Tip:** **Note:** This method is for users with good technical knowledge or those working with a developer.

  
**Requirements**

-   You'll need to have access to your website’s source code.
    
-   Find the header of your website or locate the header template in your CMS or web platform. Paste the code snippets at the bottom of the `<head>` section, just above the closing `</head>` event.
    
-   If you need help, your developer or IT team can also help you complete this setup.
    
-   Web development skills are required to replace variables with expected values, see the explanatory tables in each tag description.

- If "Integrating Criteo through Shopify": [Integrating Criteo through Shopify](#step-5039938)
- If "Google Tag Manager Implementation": [Google Tag Manager Implementation](#step-5039940)
- If "All Criteo OneTag events and parameters": [All Criteo OneTag events and parameters](#step-5039939)

<a id="step-5039938"></a>

## Integrating Criteo through Shopify

_Part of this guide is not public._

This path ends here.

<a id="step-5039940"></a>

## Google Tag Manager Implementation

_Part of this guide is not public._

This path ends here.

<a id="step-5039939"></a>

## All Criteo OneTag events and parameters

See [All Criteo OneTag events and parameters](#step-vZbzbEeY86-775825) above.

This path ends here.
