---
title: 'Conversion Events Reporting'
description: 'Conversion Event Reporting helps you measure how users interact with your site or app after seeing or clicking your ads. In addition to clicks and…'
language: en
guide: Gu0uL606gZ
updated: 2026-05-19T16:38:27Z
canonical: https://help.criteo.com/kb/guide/en/conversion-events-reporting-Gu0uL606gZ/Steps/5039957
alternates:
  de: https://help.criteo.com/kb/guide/de/conversion-event-reporting-Gu0uL606gZ.md
  es: https://help.criteo.com/kb/guide/es/informes-sobre-eventos-de-conversion-Gu0uL606gZ.md
  fr: https://help.criteo.com/kb/guide/fr/reporting-sur-les-evenements-de-conversion-Gu0uL606gZ.md
  it: https://help.criteo.com/kb/guide/it/reportistica-degli-eventi-di-conversione-Gu0uL606gZ.md
  ja: https://help.criteo.com/kb/guide/ja/-Gu0uL606gZ.md
  ko: https://help.criteo.com/kb/guide/ko/-Gu0uL606gZ.md
  pt-BR: https://help.criteo.com/kb/guide/pt-BR/relatorios-de-eventos-de-conversao-Gu0uL606gZ.md
  zh: https://help.criteo.com/kb/guide/zh/-Gu0uL606gZ.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/en/conversion-events-reporting-Gu0uL606gZ/Steps/5039957

# Conversion Events Reporting

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

## Conversion Events Reporting

Conversion Event Reporting helps you measure how users interact with your site or app after seeing or clicking your ads. In addition to clicks and impressions, you can report specific actions such as searches, add-to-cart events, sign-ups, or purchases.

  
**What are the available metrics?** 

The available metrics for Conversion Events reporting are as follows: 

-   **\[Event name\]** – The number of completed \[Event name\] conversion events 
    

-   **Cost per event \[Event name\]** – Cost ÷ number of completed \[Event name\] conversion events 
    

-   **Conversion rate (CVR) \[Event name\]** - Percentage of completed \[Event name\] conversion events compared to the clicks that occurred 
    

**How to access Conversion Events reporting?** 

To view Conversion Events metrics: 

-   From the left-navigation panel, select **Analytics** and then **Reports library**
    

-   Click **\+ Create Custom Report** in the top-right corner 
    

-   In the **Table** section, under **Build your report**, click the pencil icon in the right side 
    

-   Choose the desired Conversion Events metrics and click **Apply** to pull your report 
    

**What are the available Attribution windows?** 

Attribution windows define how long after an ad interaction a conversion event can be credited to that ad. Supported Windows include: 

-   **Post-click attribution:**1 day, 7 days , and 30 days 
    

-   **Post-view attribution:** 1 day, 7 days, 14 days , and 30 days 
    

-   **Combined:** 7 days click + 1 day view and 30 days click + 1 day view 
    

> **Tip:** **Note:** Last click and Client Attribution are not supported for Conversion Events.

- If "Overview of Conversion Events": [Overview of Conversion Events](#step-5039965)
- If "All Criteo OneTag events and parameters": [All Criteo OneTag events and parameters](#step-5039964)
- If "How to choose the right advertising objective?": [How to choose the right advertising objective](#step-5039963)

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

## Overview of Conversion Events

<a id="step-CdSmb32hgX-5031049"></a>

## What are Conversion Events?

> **Tip:** **Remember:** 
>
> -   OneTag must be implemented correctly on your website or app so events can be tracked. 
>     
>
> -   Events must be activated and have the correct status for optimization 
>     
>
> -   Naming must follow supported formats (case-sensitive), or events will not be recognized 
>     
>
> -   Only custom campaigns are eligible (GO! campaigns are not supported)

Conversion Events are specific actions on your website or app that you track, report on, and use as objective goals in your campaigns. While completed purchases remain supported, Conversion Events expand optimization beyond final sales to include mid-funnel engagement and high-value lead actions, such as:  

-   Submitting a lead form 
    

-   Starting a trial 
    

-   Adding a product to cart 
    

They are captured through OneTag, which sends event data to Criteo when a user completes one of these actions, allowing the system to validate the event and use it as a signal for optimization. By using Conversion Events, you can measure performance based on real business results and enable campaigns to automatically adjust delivery and bidding to drive more of the outcomes that matter most to you. 

> **Tip:** **Customer Success Story: Skyscanner** 
>
>   
> Skyscanner successfully used Conversion Events to optimize campaigns toward meaningful lower‑funnel actions. By focusing on key conversion signals, they were able to improve performance and gain better visibility into user intent. 
>
>   
> Read the full Skyscanner success story here: [Click Here](https://www.criteo.com/success-stories/skyscanner/)

  
**What are the supported event types?** 

Conversion Events are grouped into three categories based on the stage of the user journey. The supported conversions events are as follows: 

-   **Engagement Events –** It signals mid-funnel interest and product consideration. The supported engagement events are as follows:
    
    -   Listing or Category Page View - Tracks visits to category listing pages 
        
    -   Product Page View - Tracks visits to product pages 
        
    -   Search - Tracks user search interactions (Example: hotel or flight search) 
        
    -   Add to Cart - Tracks when the user adds products to basket 
        
    -   View Basket - Tracks basket views 
        

-   **Lead Events -** These capture high-value non-sale actions that indicate a user intends to engage with a business. Supported lead events include: 
    
    -   Signup - Account or registration creation 
        
    -   Subscribe – Start of a paid subscription 
        
    -   Submit Form - Form submissions for contact or service inquiry 
        
    -   Contact - Clicks or submissions to a phone, message, email or chat request 
        
    -   Start Trial – Trial initiated 
        
    -   Schedule - Bookings or appointments (Example: Viewings and meetings) 
        
    -   ClickOut - Clicks and redirects to an external site 
        
    -   Other - User-defined actions or uncategorized 
        

-   **Sale Events** – It signals final purchase or booking confirmation. The supported sale events include: 
    
    -   Purchase - Completed sale or booking (Example: shoes, flight booked, etc.) 
        

  
**When to use Conversion Events?** 

You can use different Conversion Event types depending on your goals: 

-   **Engagement events:** Useful for long consideration cycles where early intent signals matter 
    

-   **Lead events:** Best for non‑ecommerce businesses where conversions happen outside the site 
    

-   **Sale events:** Use when optimizing for revenue or ROAS 
    

Selecting the correct event type ensures optimization aligns with meaningful outcomes instead of surface‑level activity. 

  
**What are the recommended use cases?** 

Conversion Events allow you to track and optimize toward meaningful actions beyond the standard Sale conversion. This helps improve signal quality, campaign efficiency, and visibility across the full funnel.

-   **Acquisition Optimization** 
    
    Optimize acquisition campaigns to target mid-funnel intent signals, rather than focusing on visits or final sales. This helps attract higher-quality users earlier in their journey.
    
    > **Tip:** **Examples** 
    >
    > -   **Retail:** Product Page View, Add to Cart 
    >     
    >
    > -   **Travel:** Search, Listing Page View 
    >     
    >
    > -   **Classifieds:** Contact, Submit Form
    
-   **Lead Generation** 
    
    Optimize campaigns to drive lead actions, building first-party data and generating qualified prospects.
    
    > **Tip:** **Examples** 
    >
    > -   Signup 
    >     
    >
    > -   Submit Form 
    >     
    >
    > -   Contact
    
-   **Secondary KPI for Retargeting** 
    
    Use mid-funnel signals as optimization goals when sales volume is too low for stable learning. These signals can indicate strong purchase intent even if the final conversion hasn’t happened yet.
    
    > **Tip:** **Example** 
    >
    > -   Retarget users who Added to Cart or Viewed Basket
    

  
**What are the supported Bid Strategies?** 

Conversion Events currently support only the following bid strategies: 

-   Budget 
    
-   MaxCPC 
    

 For more information on bid strategies, [click here](https://help.criteo.com/kb/guide/en/about-bid-strategies-edJ5NNQrpO/Steps/775684,2515268,775647,2423930,2423927,2423931,2423928,2423926,2177391).

  
**Why use Conversion Events?** 

Conversion Events enable outcome-based optimization and optimize campaigns toward the actions that directly impact your business goals. By using conversion events, you can**:** 

-   Optimize campaigns toward meaningful actions like signups, searches, subscribe in addition to purchases 
    
-   Measure performance based on metrics tied to your selected event, such as cost per conversion event or conversion event conversion rate 
    
-   Improve bidding and delivery using validated conversion signals 
    
-   Gain visibility into mid-funnel and lead actions that influence final conversions 
    
-   Align campaign performance with your true business KPIs
    

  
**How to set up Conversion Events?** 

To set up conversion events: 

-   Ensure that your event is implemented and passed via OneTag/ S2S.
    
    > **Tip:** For more detailed information, [click here](https://help.criteo.com/kb/guide/en/introduction-to-the-criteo-onetag-8fjCDwCENw/Steps/775595).
    
-   Go to the Events Tracking Page from the left navigation panel 
    
-   In the Event Status section, go to the **Objective** column and use the **Activate as objective** toggle button to activate an Event as an objective 
    
-   Now, when you create a new Adset, the Event turned on as an objective will be listed under the **Objective** section for you to choose 
    
-   While editing an existing ad set, the Events you activated as objectives will also be visible for you to choose from
    

  

> **Tip:** **Best Practices** 
>
> These recommendations will help ensure a clean setup, reliable measurement, and strong campaign performance when using Conversion Events. 
>
> -   **Campaign Strategy & Setup** 
>     
>     -   Make sure that each event is passed through a unique tag (do not reuse the same tag for multiple events). 
>         
>     -   Prioritize acquisition campaigns, especially for long consideration or high-value verticals. 
>         
>     -   Use Budget or Max CPC as your main bidding model to support stable delivery and learning. 
>         
>     -   Apply standard audience targeting and creative best practices. 
>         
>     -   Treat retargeting use cases as secondary strategies when using Conversion Events.
>         
>     -   Conversion Events are not designed for very low-volume post-sale events.
>         
>
> -   **Measurement & Testing** 
>     
>     -   Align the selected conversion event with the campaign objective (e.g., search for travel acquisition, add-to-cart for retail). 
>         
>     -   Define baseline KPIs upfront, such as: 
>         
>         -   Cost per conversion event 
>             
>         -   Conversion rate 
>             
>         -   Conversion event volume 
>             
>     -   Confirm attribution settings before launch.
>         
>     -   When possible, run an A/B test comparing: 
>         
>         -   A legacy optimization event (e.g., visits or sales) 
>             
>         -   A Conversion Event optimization 
>             
>     -   Use consistent creatives across test and control groups to ensure accurate comparison.

- If "Conversion Events Reporting": [Conversion Events Reporting](#step-CdSmb32hgX-5040690)
- If "How to choose the right advertising objective?": [How to choose the right advertising objective](#step-CdSmb32hgX-5040689)
- If "Introduction to the Criteo OneTag": [Introduction to the Criteo OneTag](#step-CdSmb32hgX-5139511)
- If "All Criteo OneTag events and parameters": [All Criteo OneTag events and parameters](#step-CdSmb32hgX-5139512)

<a id="step-CdSmb32hgX-5040690"></a>

## Conversion Events Reporting

_Part of this guide is not public._

This path ends here.

<a id="step-CdSmb32hgX-5040689"></a>

## How to choose the right advertising objective

<a id="step-0qhANETqmK-775647"></a>

## Ad campaign Goals, Objectives and Cost controllers

This article will help you choose the right advertising objective for a newly launched Criteo campaign to meet your Goal for Customer Acquisition and Retention.

> **Tip:** Setting up Goals makes monitoring and reporting on your campaign performance more accurate, while Objectives help us recommend features and settings for you to succeed.

#### **How do you choose your Campaign Goal?**

Determine the profile of your target customer and select between Acquisition and Retention to find your next top buyer or turn your audience into loyal customers. 

Let’s say you want to: 

-   **Bring new customers to your business**, including new visitors or users who have not yet made a purchase.   
    Create an **Acquisition Campaign** to engage with new users and/or existing visitors who have not yet made a purchase. To maximize scale and performance, we recommend using wider audiences, like [Prospecting](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1680456,1683201) or [Broad targetting](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1680456,2609023). However, if you have a specific target audience in mind, you can use any of the [Criteo powered customizable audiences](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1680456,1683200).  
    
-   **Retain your existing customers and grow their lifetime value**.
    
    For this use case, you need to create a **Retention Campaign** to engage with your customers based on their purchase frequency or recency as well as their website path to purchase actions. We recommend using [Retargeting](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1680456,1683199) for a more scalable and automated approach, or [Events audiences](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1683194,1842905) or [Contact Lists](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1683194,1683196) (of CRM or CDP data) for re-engaging with a more specific tailored segment.
    

> **Tip:** **Our tip: Use both Acquisition and Retention campaigns to maximize engagement across the entire user journey.**  
>
> Acquisition campaigns will constantly feed your website audience with new potential customers, while retention campaigns will help convert them into loyal clients.

When selecting the audience to target, ensure the audience aligns with your campaign goals by using parameters like including/excluding buyers (for example, if you are trying to acquire new customers, and your definition of a new customer is someone who has never made a purchase, when using a customizable audience, make sure to exclude buyers – for more information on this approach, check out the “Manage Visitors” section [here)](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036,1680456,1683200,1916617,1916618,2848563)  

Read more about best practices on audiences for Acquisition and Retention [here](https://help.criteo.com/kb/guide/en/about-audiences-0EJNOqUqYu/Steps/842036).

- If "What is an ad set objective?": [What is an Ad set Objective?](#step-0qhANETqmK-2423930)
- If "What is a cost controller?": [What is a Cost controller?](#step-0qhANETqmK-2421887)
- If "Adjust objectives and cost controllers": [Adjust Objectives and Cost Controllers](#step-0qhANETqmK-2515284)
- If "Objectives and cost controller best practices": [About bid strategies](#step-0qhANETqmK-2518013)

<a id="step-0qhANETqmK-2423930"></a>

## What is an Ad set Objective?

Your ad set Objective is what you want your audience to do when they see your ads. This should align with the Goal you want your campaign to achieve for your business.

Based on your specific business aims, there are pre-recommended features to help your campaign succeed.

#### **How to choose ad set objective?**

Before starting a new campaign:

1.  Think about what your business goals are,
    
2.  Define what you want your audience to do when they see your ads,
    
3.  Choose for your Criteo campaigns the relevant campaign objective and cost controller based on your Media type.
    

Here are the campaign objectives you can choose from for your Criteo **campaigns.**

Next: [Video views](#step-0qhANETqmK-2423927)

<a id="step-0qhANETqmK-2421887"></a>

## What is a Cost controller?

See [About bid strategies](https://help.criteo.com/kb/guide/en/about-bid-strategies-edJ5NNQrpO.md).

This path ends here.

<a id="step-0qhANETqmK-2515284"></a>

## Adjust Objectives and Cost Controllers

| Media type | Objective | Cost controller |
| --- | --- | --- |
| **Display**   <br>_Create, manage and run immersive display ads across the web_ | -   **Visits**<br>    <br>-   **Sales** <br>    <br>-   **Revenues** | Max CPC |
| Control by budget   <br>_Criteo Smart bidding_ |  |  |
| Control by target   <br>_Criteo Smart bidding_ |  |  |
| **Video**   <br>_Manage and run immersive video ads across the web_ | **Video views** | Control by CPM |
| -   **Visits**<br>    <br>-   **Sales** | Control by budget   <br>_Criteo Smart bidding_ |  |

This path ends here.

<a id="step-0qhANETqmK-2518013"></a>

## About bid strategies

See [About bid strategies](https://help.criteo.com/kb/guide/en/about-bid-strategies-edJ5NNQrpO.md).

This path ends here.

<a id="step-0qhANETqmK-2423927"></a>

## Video views

Expose your brand by getting people to watch your videos.  

Did you know that 64% of people are more likely to buy a product after watching a video about it?**\*** If you want to increase your brand awareness and create a full funnel campaign, we recommend using this option.  

> **Tip:** This strategy focuses on maximizing the number of **completed visible video views**.

Next: [Visits](#step-0qhANETqmK-2423931)

<a id="step-0qhANETqmK-2423931"></a>

## Visits

Get people to explore your site or app.

Whether your objective is to drive new audiences to your website or engage existing visitors/customers, we recommend using this option to drive quality traffic to your web.

> **Tip:** This strategy focuses on **increasing traffic** by reaching **the people most likely to be interested** in your products or services.

Next: [Sales](#step-0qhANETqmK-2423928)

<a id="step-0qhANETqmK-2423928"></a>

## Sales

Get people to buy your products or services.

If you want to run lower funnel campaigns where the number of conversions is your primary metric, we recommend using this option.

This objective optimizes users who convert most often.

Next: [Revenue](#step-0qhANETqmK-2423926)

<a id="step-0qhANETqmK-2423926"></a>

## Revenue

Get people to spend more while buying from your site or app.

If you want to run lower funnel campaigns where total sales, average order value or customer lifetime value is your primary metric, we recommend using this option. This objective optimizes on users who convert most often and are classified as High Spenders. It is currently available for display media type, but not for video.

Next: [Engagement](#step-0qhANETqmK-5040736)

<a id="step-0qhANETqmK-5040736"></a>

## Engagement

It signals mid-funnel interest and product consideration. These are useful for long consideration cycles where early intent signals matter. The supported objectives are as follows: 

-   **Listing or Category Page View** - Tracks visits to category listing pages 
    
-   **Product Page View** - Tracks visits to product pages 
    
-   **Search** - Tracks user search interactions (Example: hotel or flight search) 
    
-   **Add to Cart** - Tracks when the user adds products to basket 
    
-   **View Basket** - Tracks basket views
    

> **Tip:** For more information, [click here](https://help.criteo.com/kb/guide/en/overview-of-conversion-events-CdSmb32hgX/Steps/5031049).

Next: [Lead](#step-0qhANETqmK-5040735)

<a id="step-0qhANETqmK-5040735"></a>

## Lead

These capture high-value non-sale actions that indicate a user intends to engage with a business. They are best for non‑ecommerce businesses where conversions happen outside the site. Supported objectives include:

-   **Signup** - Account or registration creation 
    
-   **Subscribe** – Start of a paid subscription 
    
-   **Submit Form** - Form submissions for contact or service inquiry 
    
-   **Contact** - Clicks or submissions to a phone, message, email, or chat request 
    
-   **Start Trial** – Trial initiated 
    
-   **Schedule** - Bookings or appointments (Example: Viewings and meetings) 
    
-   **ClickOut** - Clicks and redirects to an external site 
    
-   **Other** - User-defined actions or uncategorized
    

> **Tip:** For more information, [click here](https://help.criteo.com/kb/guide/en/overview-of-conversion-events-CdSmb32hgX/Steps/5031049).

> **Warning:** **Important**
>
> Conversion-based optimization models are not supported for ad sets associated with social platforms.
>
> In some cases, an ad set may be linked to a social platform at the backend level, even if this association is not visible to you.
>
> When this occurs, any attempt to update the optimization model to a conversion-based option may be rejected.
>
>   
> If you are unable to update the optimization model, we recommend verifying whether the ad set is associated with a social platform or reaching out to support for further assistance.

This path ends here.

_End of the embedded guide "How to choose the right advertising objective"._

<a id="step-CdSmb32hgX-5139511"></a>

## Introduction to the Criteo OneTag

See [Introduction to the Criteo OneTag](https://help.criteo.com/kb/guide/en/introduction-to-the-criteo-onetag-8fjCDwCENw.md).

This path ends here.

<a id="step-CdSmb32hgX-5139512"></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"._

_End of the embedded guide "Overview of Conversion Events"._

<a id="step-5039964"></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-5039963"></a>

## How to choose the right advertising objective

See [How to choose the right advertising objective](#step-0qhANETqmK-775647) above.

This path ends here.
