---
title: 'Criteo OneTag简介'
description: 'Criteo OneTag是一个代码片段，必须安装在您网站的源代码中。 它可以帮助您记录和了解用户在您的网站上进行的操作。 它是异步加载，因此不会影响您的网站加载时间或客户体验。 它是如何工作的呢？ Criteo OneTag允许Criteo根据每个用户在您网站上的旅程收集数据。…'
language: zh
guide: 8fjCDwCENw
updated: 2026-02-22T20:08:27Z
canonical: https://help.criteo.com/kb/guide/zh/criteo-onetag-8fjCDwCENw/Steps/775595
alternates:
  de: https://help.criteo.com/kb/guide/de/einfuhrung-zum-criteo-onetag-8fjCDwCENw.md
  en: https://help.criteo.com/kb/guide/en/introduction-to-the-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
---

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

# Criteo OneTag简介

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

## Criteo OneTag简介

Criteo OneTag是一个代码片段，必须安装在您网站的源代码中。

它可以帮助您记录和了解用户在您的网站上进行的操作。

它是异步加载，因此不会影响您的网站加载时间或客户体验。

#### **它是如何工作的呢？**

Criteo OneTag允许Criteo根据每个用户在您网站上的旅程收集数据。

当用户与您的网站互动时（例如，浏览产品页面、将商品添加到购物车、搜索产品等），Criteo OneTag会获取此操作，然后对此操作进行存储和分析，并根据您的广告活动目标，将其用于向您的现有受众和新受众显示个性化产品推荐。 

Criteo OneTag收集的操作越多，您的广告活动就越能有效地向最有可能访问您网站的人投放广告。

- If "How Criteo OneTag learns from your site’s pages?": [All Criteo OneTag events and parameters](#step-5039941)
- If "如何设置Criteo OneTag": [如何设置Criteo OneTag](#step-853887)
- If "对Criteo OneTag集成进行测试": [对Criteo OneTag集成进行测试](#step-853890)

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

## All Criteo OneTag events and parameters

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

## 全部Criteo OneTag事件和参数

> **Tip:** **注：**将OneTag事件和参数直接添加到网站的源代码中，需要具备扎实的技术知识或开发人员的协助。

  
本指南概述了您可以在网站上使用的所有可用的OneTag事件和参数。 对每个事件均作出了详细解释。

> **Tip:** 请记住，您可能不会实现前述所有标签。 在大多数情况下，您只需要实现符合您特定目标的标签子集即可。

- If "加载脚本": [加载脚本](#step-vZbzbEeY86-868657)
- If "访问标签": [访问标签](#step-vZbzbEeY86-868659)
- If "主页标签": [主页标签](#step-vZbzbEeY86-868656)
- If "类别/关键词搜索/列表标签": [类别/关键词搜索/列表标签](#step-vZbzbEeY86-868660)
- If "旅游搜索标签": [旅游搜索标签](#step-vZbzbEeY86-868655)
- If "产品标签": [产品标签](#step-vZbzbEeY86-868658)
- If "添加到购物车标签": [添加到购物车标签](#step-vZbzbEeY86-868653)
- If "购物篮/购物车标签": [购物篮/购物车标签](#step-vZbzbEeY86-868654)
- If "销售标签": [销售标签](#step-vZbzbEeY86-868652)
- If "潜在客户标签": [潜在客户标签](#step-vZbzbEeY86-5039946)
- If "常见参数": [常见参数](#step-vZbzbEeY86-5039945)

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

## 加载脚本

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

需要加载程序脚本标签才能启用其余的Criteo OneTag事件。

将左侧的代码片段添加到所有网页的`<head>`部分，从而避免被另一个同步加载的脚本延迟。

每个页面只需要触发一次，但在单个页面上多次调用脚本不会破坏任何内容。

| **变量** | **描述** | **示例** | **语法** | **必填项** |
| --- | --- | --- | --- | --- |
| `YOUR_PARTNER_ID` | Partner Id是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 访问标签

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

将此代码片段添加到所有网页的`<head>`部分，从而避免被另一个同步加载的脚本延迟。

每个页面只需要触发一次，但在单个页面上多次调用脚本不会破坏任何内容。

访问标签有助于捕获网站上的真实登录率和跳出率。

  
  

> **Tip:** **提示：**为了获得最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 综述 | 示例 | 语法 | 必填项 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49168a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| `YOUR_PARTNER_ID` | partnerID是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 主页标签

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

将此代码片段添加到您网站主页的`<head>`部分。

在您的**主页**上实现Criteo OneTag使我们能够跟踪跳出用户（访问您的主页但未进行购买就离开您网站的用户）。 我们会自动评估这些用户的价值，并可能展示附带畅销产品的横幅。

此标签应在网站的主页或主登录页面上触发，以标记用户并将其添加到目标受众中。  
  
在您网站的主页或主登录页面上触发此事件。   
  
有关如何管理您网站政策的完整信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。  
每个页面只需触发一次，但在同一个页面上多次调用脚本不会破坏任何内容。  
动态地将使用##和##括起来的字段替换为相应的值，确保也删除所有#符号。  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 综述 | 示例 | 语法 | 必填项 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49168a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| `YOUR_PARTNER_ID` | partnerID是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 类别/关键词搜索/列表标签

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

将这些代码片段添加到任何产品详情页面的`<head>`部分。

此页面可以是搜索结果页面、类别列表或推荐多个产品的简单页面。

> **Warning:** 请注意，这**并不意味着**，您应该在包含“推荐产品”部分的产品页面上触发此标签。

  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 综述 | 示例 | 语法 | 必填项 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本或SHA256<br>加密电子邮箱  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fb1a26e4bc422aef54eb4 | 字符串 | 必填项 |
| Hash<br>Method | 用于电子邮件的加密方法。<br>对于<br>纯文本电子邮箱，请输入“none”；<br>对于sha265加密电子邮件，请输入<br>“sha256” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49f68a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>多个会话中<br>保持一致的唯一Id。<br>示例：第一方<br>cookie ID | 53e20ea7004247bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip code | 用户的收货地址邮编 | 12345 | 字符串 | 推荐 |
| Product ID | 产品的唯一ID | a123 字符串 是 | 字符串 | 推荐 |
| Category | 用户正在浏览的<br>页面的类别<br>此值应匹配<br>您的<br>产品目录中发送的<br>类别值 | 电子产品>音频>耳机 | 格式<br>与您的<br>产品目录<br>相同<br>的<br>字符串 | 推荐 |
| Search<br>keyword | 用户输入的<br>关键词 | 耳机 | 字符串 | 推荐 |
| Page<br>number | 页码。 如果是<br>单个无限<br>页面，则应将其设置<br>为1 | 1 | 整数 | 推荐 |
| Filters | 在页面上<br>应用的筛选条件。 如果您对单个筛条件进行了<br>多次选择，<br>请使用逗号<br>将它们隔开。 请查看<br>下面的详细信息和<br>示例示例 | \[{name: "brand", operator: "eq", value:<br>"Bose, Sony")\] | 对象<br>数组 | 不 |
| `YOUR_PARTNER_ID` | partnerID是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 旅游搜索标签

```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:** **此事件由旅游客户使用。**
>
> 如果您没有旅游网站，则可以跳过此标签。

  
当用户对某个特定项目（航班、火车、租车等）表现出兴趣后，此标签应在搜索结果页面上显示出来。 它为我们的引擎提供了有关客户兴趣以及他们可能感兴趣的商品的详细信息。  
  
在用户输入有关搜索的详细信息后，在任何搜索结果页面上显示此事件。    
  
有关如何管理您网站政策的完整信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。  
每个页面只需触发一次，但在同一个页面上多次调用脚本不会破坏任何内容。  
动态地将使用##和##括起来的字段替换为相应的值，确保也删除所有#符号。  
  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 概述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本或SHA256加密电子邮箱  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054026255fb1a26e4bc422oef54eb4 | 字符串 | 必填项 |
| Hash<br>method | 用于电子邮件的加密方法。 对于<br>纯文本电子邮箱，请输入“none”；<br>对于SHA265加密邮件，请输入<br>“sha256” | sho256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49f68a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中<br>保持一致的唯一Id。<br>示例：第一方<br>cookie ID | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip code | 用户的收货地址<br>邮编 | 12345 | 字符串 | 推荐 |
| Product ID | 产品的唯一ID。    示例：航班ID | a123 | 字符串 | 是 |
| Check-in<br>date | 出发日期信息 | “2021-06-01” | MM-DD" | 推荐 |
| Check-out date | 返回日期信息 | “2021-06-08” | MM-DD” | 推荐 |
| Number of adults | 成人乘客人数 | 1 | 整数 | 推荐 |
| Number of children | 儿童乘客人数 | 0 | 整数 | 推荐 |
| Number of infants | 婴儿乘客人数 | 0 | 整数 | 推荐 |
| Number of rooms | 座位数量 | 0 | 整数 | 推荐 |
| `YOUR_PARTNER_ID` | Partner Id是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 产品标签

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

“产品标签”为Criteo的算法提供了用户正在查看的产品的清晰标记。

  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 概述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49168a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| Product ID | 产品的唯一ID | a123 字符串 是 | 字符串 | 必填项 |
| Price | 产品的单价 | 20 | 双倍 | 不 |
| Availability | 产品有货状态。 如果产品有货，则为1；如果产品缺货，则为0。 | 1 | 布尔型 | 不 |
| `YOUR_PARTNER_ID` | Partner Id是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 添加到购物车标签

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

此标签有助于标记将商品添加到购物车的用户。 这对于拥有完全放弃购物车的受众并且不会错过将商品添加到购物车，但未访问实际购物车页面的用户非常有用。  
  
将此代码片段添加到“添加到购物车”页面的`<head>`部分。 请在用户将商品添加到购物车后触发此事件。  
  
有关如何管理您网站政策的完整信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。  
每个页面只需触发一次，但在同一个页面上多次调用脚本不会破坏任何内容。  
动态地将使用##和##括起来的字段替换为相应的值，确保也删除所有#符号。  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 概述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49168a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| Product ID | 产品的唯一ID | a123 字符串 是 | 字符串 | 必填项 |
| Price | 产品的单价 | 20 | 双倍 | 必填项 |
| Quantity | 消费者添加到购物车中的特定商品的数量 | 2 | 整数 | 必填项 |
| `YOUR_PARTNER_ID` | Partner Id是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 购物篮/购物车标签

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

此标签有助于标记访问过购物车页面的用户。 这对于完全放弃购物车的受众来说非常有用。

将此代码片段添加到网站“购物车”页面的`<head>`部分。  
  
有关如何管理您网站政策的完整信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。  
每个页面只需触发一次，但在同一个页面上多次调用脚本不会破坏任何内容。  
动态地将使用##和##括起来的字段替换为相应的值，确保也删除所有#符号。  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 概述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49168a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个<br>会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| Product ID | 产品的唯一ID | a123 字符串 是 | 字符串 | 必填项 |
| Price | 产品的单价 | 20 | 双倍 | 必填项 |
| Quantity | 消费者添加到购物车中的特定商品的数量 | 2 | 整数 | 必填项 |
| `YOUR_PARTNER_ID` | Partner Id是可以在您的Commerce Growth Url中找到的唯一ID。 | [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) | 字符串 | 必填项 |

This path ends here.

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

## 销售标签

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

此标签记录了站内发生的转化。 无论归因如何，此标签都应针对所有转化事件触发。

  
  

> **Tip:** **提示：** 为了确保最佳查看体验，请点击表格右上角的展开图标以展开表格。

| 字段 | 概述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Email Address | 纯文本格式的电子邮箱（如您所在国家/地区的法律允许）、sha256加密电子邮箱或MD5加密电子邮箱。  <br>  <br>如需了解更多信息，请点击[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075)。 | 79054025255fbla26e4bc422aef54eb4... | \- 纯文本<br>电子邮箱<br>\- Sha256和md5加密电子邮箱 | 必填项 |
| Hash Method | 用于电子邮件的加密方法。<br>\- 对于纯文本电子邮箱，不需要包含<br>电子邮箱<br>\- 对于sha265加密电子邮箱：“sha256”<br>\- 对于md5加密电子邮箱：“md5” | sha256 | 字符串 | 必填项 |
| Phone number | 采用SHA256加密形式或纯文本形式的电话号码。 根据所选择的形式，您应该分别使用适当的事件：setSha256HashedPhoneNumber或者setPhoneNumber。 查看[此处](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561)，以了解更多信息。 | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | \- 纯文本电话号码 - SHA256加密电话号码 | 推荐 |
| Zip Code | 用户的收货地址邮编。 | 12345 | 字符串 | 推荐 |
| Transaction ID | 确认或订单# | 7654322 | 整数、唯一 ID | 必填项 |
| Product ID | 产品的唯一ID | a123 字符串 是 | 字符串 | 必填项 |
| Price | 产品的单价 | 20 | 双倍 | 必填项 |
| Quantity | 消费者添加到购物车中的特定商品的数量 | 2 | 整数 | 必填项 |

This path ends here.

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

## 潜在客户标签

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

潜在客户标签是效果衡量套件中的最后一个也是最关键的事件。 它会在“潜在客户确认”或“感谢”页面上触发，记录已完成的潜在客户操作，例如表格提交或账户注册。 无论归因如何，所有转化事件均应该触发此标签，以便可以衡量和评估每个潜在客户。

-   **目的**：提供已捕获潜在客户的明确信号。
    
-   **影响**：能够准确进行广告活动报告、归因和投资回报率衡量，同时还能反馈到优化中，从而提高获得更多高质量潜在客户的概率。
    
-   **何时使用**：所有潜在客户广告活动均必须使用。
    

  
在设置广告活动时，请使用以下预定义的潜在客户类型：

| **事件类型** | **描述** |
| --- | --- |
| 注册 | 用户创建账户以进行注册并使用某项服务或平台 |
| 订阅 | 用户开始付费订阅您提供的产品或服务 |
| 提交表单 | 用户填写咨询或报价表 |
| 联系 | 用户点击或提交电话、消息、电子邮箱或聊天请求 |
| 开始试用 | 用户注册免费试用 |
| 日程 | 用户预约会议、访问或参观 |
| 点击退出 | 用户点击并重定向到外部网站 |
| 其他 | 不属于其他事件类型之一的事件。 始终使用“其他”标签。 不要创建“Custom2”、“Custom\_X”等自定义变体。 |

> **Tip:** **注：**您需要将##潜在客户类型##替换为上述值之一。

Next: [常见参数](#step-vZbzbEeY86-5039945)

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

## 常见参数

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

以下是受支持且可用于所有标签事件的常见事件参数列表。 代码片段展示了如何将这些参数添加到每个事件类型。 

| 场地 | 描述 | 示例 | 语法 | 必需 |
| --- | --- | --- | --- | --- |
| Partner Id | 用于在Criteo网络上识别您网站账户的数值。 | 12345678 | 整数 | 是 |
| Email Address | 包含以下任一项：  <br>-   SHA256加密电子邮箱（符合行业标准）<br>    <br>-   MD5加密电子邮箱<br>    <br>-   纯文本（如果您所在国家/地区的法律允许） | 79054025255fb1a26e4bc422aef54eb4... | 字符串（已删除首尾空格并使用小写，以UTF-8编码）<br>-   [纯文本电子邮箱](https://help.criteo.com/kb/guide/en/pass-hashed-emails-through-cross-device-event-cYHxCUc1qv/Steps/1977811,1977816)<br>    <br>-   [Sha256和md5加密电子邮箱](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,887075,1948825) | 推荐 |
| Hash Method | 用于电子邮件的加密方法。 纯文本电子邮箱请输入“none”，sha265加密电子邮箱请输入“sha256”。 | sha256 | 字符串 | 推荐 |
| User Phone Number - Plain Text | User Phone Number - Plain Text | +33140402290 | 字符串。 已删除首尾空格[E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106562)格式。 数字以“+”号开头，包含国家代码，且前面不加数字0。 | 不 |
| User Phone Number - SHA256 | User Phone Number - SHA256 | f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68 | 字符串。 已删除首尾空格[E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106563)格式，包含国家代码，前面不加“+”号，并经过SHA256加密处理。 | 推荐 |
| Customer ID | 一个可以识别客户CRM中唯一用户的非PII值。 示例：CRM ID、用户登录名。 传递给标签的结果不得以纯值形式发送，需要加密（MD5或SHA256） | 49f68a5c8493ec2c0bf489821c21fc3b | 字符串 | 推荐 |
| Visitor ID | 对于未经身份验证的用户，在多个会话中保持一致的唯一Id。 示例：第一方cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | 字符串 | 不 |
| Zipcode | 送货地址的邮政编码。 在将值存储到我们的数据库之前，我们会对其进行加密。 我们不存储任何PII，并且遵守所有当地法规。 | 12345 | 字符串 | 推荐 |

This path ends here.

_End of the embedded guide "全部Criteo OneTag事件和参数"._

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

## 如何设置Criteo OneTag

添加Criteo OneTag快捷、简单，且对您的用户而言是不可见的。

如需将Criteo OneTag添加到您的网站，请点击Commerce Growth左侧菜单中的资产 > 事件跟踪，然后按照步骤操作。

选择如何将Criteo OneTag添加到您的网站：

1.  电子商务平台
    
2.  Google Tag Manager
    
3.  直接实现
    

> **Warning:** 通过我们的电子商务平台插件将Criteo OneTag集成到您的网站并不包括征得用户同意，而在某些国家/地区，适用法规要求必须征得用户同意才能使用cookie或类似技术。

> **Warning:** 根据Criteo条款和条件，在所有必须征得用户同意才能使用我们服务的国家/地区，我们的客户和发布商合作伙伴有责任在任何Criteo标签触发之前征得其用户的有效同意。

> **Warning:** 有关Criteo隐私指南的更多信息，请[点击此处](https://www.criteo.com/criteo-privacy-guidelines-for-clients-and-publisher-partners/)。

Next: [电子商务平台](#step-2616497)

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

## 对Criteo OneTag集成进行测试

最后一步操作是对Criteo OneTag集成进行审核。

您想要检查Criteo是否正在从您的网站收集事件。

在Commerce Growth平台中，从左侧菜单中点击资产 > 事件跟踪。

1.  **检查事件状态**
    
    事件状态控制面板包含过去24小时内在您的网站上触发的实时标签事件的视图，并将发现大多数错误以便您纠正。
    
      
    
2.  **按类型检查事件时间线的一致性**
    
    该图表所示为Criteo在您的网站上记录的每一个事件（不仅仅是 Criteo 事件）。 如果曲线出现下降，则意味着存在与事件状态表中报告的错误相匹配的问题。  
      
    
3.  **检查您的页面上安装了哪些标签，以及是否传递了正确的值。**
    
    使用Accurate - Chrome扩展程序
    
    一个很酷的Criteo实用程序，可以轻松读取专为广告商制作的任何跟踪器。 [立即下载](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 "如何解决Criteo OneTag错误": [如何解决Criteo OneTag错误](#step-2474481)

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

## 电子商务平台

如果您的网站在受支持的平台上运行，则您可以设置Criteo OneTag和产品目录，而无需编辑您的网站源代码。

1.  从Commerce Growth控制面板中，选择您的网站运行的电子商务平台。
    
2.  按照每个电子商务平台提供的分步指南成功安装Criteo OneTag。
    

**与Criteo集成的最受欢迎的电子商务平台**

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

**与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>-   雅虎 |
| --- | --- |

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

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

## All Criteo OneTag events and parameters

See [全部Criteo OneTag事件和参数](#step-vZbzbEeY86-775825) above.

This path ends here.

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

## 如何解决Criteo OneTag错误

<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

您可以通过谷歌标签管理器添加Criteo OneTag。

**要求**

您需要：

1.  有或创建一个标签管理器帐户和容器
    
2.  在您的网站中安装标签管理器容器
    
3.  将数据层代码添加到您的网页
    
4.  添加Criteo OneTag
    
5.  验证标签是否有效
    

> **Tip:** [了解如何设置和安装谷歌标签管理器](https://support.google.com/tagmanager/answer/6103696?hl=en)

**什么是数据层？**

数据层是一个JavaScript对象，用于将信息从您的网站传递到您的标签管理器容器。 然后，您可以使用该信息填充变量并激活标签配置中的触发器。

数据层的内容将确定通过Criteo OneTag向Criteo传输哪些信息。

> **Tip:** [了解有关数据层的更多信息](https://support.google.com/tagmanager/answer/6164391?hl=en)

**选择通过GTM将Criteo OneTag添加到您网站的最佳方法**

1.  您有Google Analytics 4（GA4）数据层
    
2.  您有谷歌的Universal Analytics（UA）数据层
    
3.  您有一个自定义数据层 
    
4.  您没有数据层 
    

> **Tip:** **注：**您可以在我们的开箱即用容器 [旁边找到详细指南。](https://help.criteo.com/kb/guide/en/google-tag-manager-implementation-Jllb9QtgOk/Steps/3092624)

Next: [直接实现](#step-2616738)

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

## 直接实现

> **Tip:** 此方法适用于掌握良好技术知识的人员或与开发人员一起工作的人员。

#### **要求**

-   您需要有权访问您网站的源代码。
    
-   找到您网站的页眉或在您的CMS或网络平台中找到页眉模板。 将代码片段粘贴到`<head>`部分的底部，就在关闭`</head>`事件的上方。
    
-   如果您需要帮助，您的开发人员或IT团队也可以帮助您完成此设置。
    
-   需要具备Web 开发技能才能将变量替换为预期值，请参见每个标签描述中的说明表。

- 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 [全部Criteo OneTag事件和参数](#step-vZbzbEeY86-775825) above.

This path ends here.
