Skip to main content

Introduction

What is OneTag?The Criteo OneTag is a code snippet to embed in your website’s source code or tag management system. It measures and analyzes user interactions on your site. It also loads asynchronously, ensuring no impact on site performance or customer experience.

Integration Flow

The diagram below illustrates the integration flow for OneTag Offsite. The process has three main phases: preparation (mostly on Criteo’s side), technical integration (involving both parties) and the “Go live”, which is the campaign’s activation.
808fa5757a744f229eb4cd9ac0aa60e371dc421f0f148ed71f08f88d5e5efb3e Copy_of_Criteo_RM_Integration_timeline_1

Common Parameters

There are some common parameters which are shared between all the tags:

Event

Key

Example value

Description

setAccount

account

12345

Your Criteo Account or Partner ID, provided by your technical contact, to route data to Criteo servers.

setRetailerVisitorId

id

0193553C0A39937F23FC

A unique, unauthenticated user ID valid for at least 30 days. Used to track visitor behavior across sessions. Typically retrieved via a first-party cookie.

setCustomerId

id

1SDFJI435FH12HFK2

A consistent, internal ID for logged-in users, linked to accounts, purchase history, or membership programs.

setEmail

email

d9c37700(…)18be88

User’s email address in SHA256 hash format. Please pass an empty string if the user’s email is unavailable.


Tags

Dynamic Loader

To load the Criteo JavaScript library and ensure the loader is included across all pages, make sure to insert the following script in the head of your site. Also don’t forget to replace the placeholder with your unique Criteo Partner ID:

Homepage Tag

Trigger this tag on the homepage (http://www.retailer.com). Substitute all placeholders with actual values.

Listing Tag

Trigger this tag on all category pages (e.g., https://www.retailer.com/shopping/men) or search result pages. Substitute all placeholders with actual values.

Product Tag

Use this tag on product pages (e.g., https://www.retailer.com/shopping/product-jacket-123456). Substitute all placeholders with actual values. For availability, insert boolean value 0 for out of stock, 1 for in stock.

Add-to-Cart Tag

Trigger this tag when an item is added to the cart. Substitute all placeholders with actual values.

Basket Tag

Use this tag on the basket page (https://www.retailer.com/basket). Substitute all placeholders with actual values, ensuring prices are the singular unitary price of each item.

Conversion Tag

Trigger this tag on the “Thank You” page post-purchase. Substitute all placeholders with actual values, ensuring prices are the singular unitary price of each item.