---
title: 'How can I pass my offline sales data to Criteo?'
description: 'There are 3 options for passing Criteo your offline sales data. Please visit the updated support pages for more details: Flat file catalog integration Offline…'
language: en
guide: Yf95KPKbjB
updated: 2025-08-25T13:16:14Z
canonical: https://help.criteo.com/kb/guide/en/how-can-i-pass-my-offline-sales-data-to-criteo-Yf95KPKbjB/Steps/775624
alternates:
  de: https://help.criteo.com/kb/guide/de/wie-kann-ich-die-daten-zu-meinen-offline-sales-an-criteo-ubertragen-Yf95KPKbjB.md
  es: https://help.criteo.com/kb/guide/es/como-puedo-compartir-mis-datos-de-ventas-offline-con-criteo-Yf95KPKbjB.md
  fr: https://help.criteo.com/kb/guide/fr/comment-transmettre-mes-donnees-de-ventes-hors-ligne-a-criteo-Yf95KPKbjB.md
  it: https://help.criteo.com/kb/guide/it/come-posso-trasmettere-le-mie-vendite-offline-a-criteo-Yf95KPKbjB.md
  ja: https://help.criteo.com/kb/guide/ja/criteo-Yf95KPKbjB.md
  ko: https://help.criteo.com/kb/guide/ko/-Yf95KPKbjB.md
  pt: https://help.criteo.com/kb/guide/pt/como-eu-posso-passar-meus-dados-de-vendas-offline-para-a-criteo-Yf95KPKbjB.md
  zh: https://help.criteo.com/kb/guide/zh/criteo-Yf95KPKbjB.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/en/how-can-i-pass-my-offline-sales-data-to-criteo-Yf95KPKbjB/Steps/775624

# How can I pass my offline sales data to Criteo?

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

## How can I pass my offline sales data to Criteo?

There are 3 options for passing Criteo your offline sales data.  Please visit the updated support pages for more details:

1.  **Flat file catalog integration**
    
2.  **Offline sales onboarding API**
    
3.  **Data partner integrations:** our strategic partnerships allow you to easily pass us your offline sales data via your data partners such as CRM and Marketing software providers, Digital Receipts and Loyalty providers, Integration Platforms and Point of Sale providers, through direct integrations.
    

  
The offline sales data file must include:

-   Shopper ID (provided as hashed email)
    
-   Transaction data (i.e. prices and quantities)
    
-   Product level data (i.e. product ID)
    
-   Store ID
    
-   Timestamp (to the minute)
    

  
In order to run Store Conversions campaigns, you will also need to:

-   Pass your Store Directory to provide relevant store details in ads
    
-   Capture online store intent with Criteo OneTag
    
-   Pass your Local Inventory _(_optional_)_ to filter which products are available at each store
    

 Please get in touch with your Criteo representative to find out more.

- If "Offline sales onboarding - flat file feed integration": [Offline sales onboarding - flat file feed integration](#step-914151)
- If "Offline sales onboarding - API integration": [Offline sales onboarding - API integration](#step-914149)
- If "Store Directory": [Store Directory](#step-914152)
- If "Capture online store intent with Criteo OneTag": [Capture online store intent with Criteo OneTag](#step-914153)
- If "Using a local inventory feed": [Using a local inventory feed](#step-914150)
- If "Activate the Criteo Offline Sales native Snowflake app": [Activate the Criteo Offline Sales native Snowflake app](#step-4469234)

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

## Offline sales onboarding - flat file feed integration

<a id="step-8g1zFYawMy-775585"></a>

## Offline sales onboarding - flat file feed integration

| Type | Feed example | Format | Update | Location |
| --- | --- | --- | --- | --- |
| One event\_item\_id per line.<br>Each line of a given transaction to share the same event\_id. | Feed example in attachment 1 | CSV/TSV | Daily (Max. 48 hours) | Criteo (S)FTP/Client (S)FTP |
| One event\_id per line.<br>Including an event\_item\_id column with a list of product IDs separated by pipes (I). | Feed example in attachment 2 | CSV/TSV | Daily (Max. 48 hours) | Criteo<br>(S)FTP/Client (S)FTP |

If you wish to share your data via flat file feed integration, please use a TSV or CSV feed format.

The CSV format is based on the comma-separated value. The header must be declared in the first row of the file, it is recommended that headers are provided in the lower case and don't contain spaces.

Files can be uploaded to the Criteo FTP or SFTP, or downloaded from your own FTP or SFTP by Criteo. Get in touch with your Account Strategist to agree on the integration method that is best for you. 

Each line in the file should be a distinct product with its unit price and quantity.  Transactions that include several products should be split into multiple lines, sharing the same event\_id.  Criteo will group by event\_id and calculate the total price.

Please note that Criteo can also accept one line per transaction, in which case multiple product data should be separated by pipes(|) inside the "event\_item\_id" column.

It is recommended that you schedule an import at least once daily, Criteo can process the flat file as frequently as every hour.  The maximum ingestion delay is 48 hours.

Please see the above table with the data specification for your flat file upload, showing columns that are required and optional.

Attachments:

- [Attachment 1.csv](https://files.stonly.com/stepAttachments/1de14f43-2bfb-47b2-aae1-490fbca6f93e.csv)
- [Attachment 2.csv](https://files.stonly.com/stepAttachments/82d57887-47bf-4994-93bd-7c17d126d1da.csv)

- If "Required fields": [Required fields](#step-8g1zFYawMy-891116)
- If "Optional fields": [Optional fields](#step-8g1zFYawMy-891115)

<a id="step-8g1zFYawMy-891116"></a>

## Required fields

- If "user\_email": [user\_email](#step-8g1zFYawMy-891527)
- If "Store Directory": [Store Directory](#step-8g1zFYawMy-912786)
- If "event\_id": [event\_id](#step-8g1zFYawMy-891539)
- If "event\_item\_quantity": [event\_item\_quantity](#step-8g1zFYawMy-891533)
- If "event\_item\_id": [event\_item\_id](#step-8g1zFYawMy-891541)
- If "event\_currency": [event\_currency](#step-8g1zFYawMy-891532)
- If "event\_item\_price": [event\_item\_price](#step-8g1zFYawMy-891538)
- If "event\_timestamp": [event\_timestamp](#step-8g1zFYawMy-891534)

<a id="step-8g1zFYawMy-891115"></a>

## Optional fields

- If "user\_crmid": [user\_crmid](#step-8g1zFYawMy-891535)
- If "Store Directory": [Store Directory](#step-8g1zFYawMy-912786)
- If "event\_item\_alternate\_id": [event\_item\_alternate\_id](#step-8g1zFYawMy-891531)
- If "event\_value": [event\_value](#step-8g1zFYawMy-891526)
- If "event\_item\_id\_gtin": [event\_item\_id\_gtin](#step-8g1zFYawMy-891536)
- If "event\_item\_category": [event\_item\_category](#step-8g1zFYawMy-891540)
- If "event\_item\_brand": [event\_item\_brand](#step-8g1zFYawMy-891529)
- If "event\_item\_id\_mpn": [event\_item\_id\_mpn](#step-8g1zFYawMy-891537)
- If "event\_custom\_data": [event\_custom\_data](#step-8g1zFYawMy-891530)
- If "store\_id": [store\_id](#step-8g1zFYawMy-4979060)

<a id="step-8g1zFYawMy-891527"></a>

## user\_email

Email of the shopper.

Emails will be ingested into Criteo’s identity graph as SHA256 of an MD5. If you are unable to provide emails in this format you can provide MD5 encrypted emails, which will be hashed on the fly by Criteo before being ingested.

  
Before hashing, all users' email addresses must be:

-   Trimmed i.e. all spaces before and after the user's email address must be removed
-   Converted to lowercase
-   Encoded in UTF-8

  

**Type:** String

**Example:** **MD5:** e13743a7f1db7f4246badd6fd6ff54ff

**SHA256 of MD5:** 000e3171a5110c35c69d060112bd0ba55d9631c7c2ec93f1840e4570095b263a

This path ends here.

<a id="step-8g1zFYawMy-912786"></a>

## Store Directory

<a id="step-SHaqqKX3FY-775587"></a>

## Store Directory

**1 - Why should I share this data?**

In order to run Store Conversions campaigns, we need to understand the location of your stores and key information that shoppers need to visit.

We will leverage this data to improve campaign targeting and display the most relevant ads to shoppers. 

**2 - Format overview and frequency**

-   We accept CSV or TSV (comma- or tab-separated values) files
    
-   The header must be declared in the first row of the file and must be provided in lower case without spaces
    
-   Each line of the file should be a distinct store
    
-   Files can be uploaded to the Criteo FTP or SFTP, or downloaded from your own FTP, SFTP or http(s) servers by Criteo. Get in touch with your Criteo Account Strategist to agree the integration method that is best for you
    
-   We can support daily file updates. However, if information doesn’t change that often, just let us know when we need to ingest a new file
    

  
  

 **3 - List of required fields**

- If "Store information": [Store information](#step-SHaqqKX3FY-887843)
- If "Location data": [Location data](#step-SHaqqKX3FY-887842)
- If "Opening hours": [Opening hours](#step-SHaqqKX3FY-887845)
- If "Additional Information": [Additional Information](#step-SHaqqKX3FY-887840)

<a id="step-SHaqqKX3FY-887843"></a>

## Store information

- If "store\_id": [store\_id](#step-SHaqqKX3FY-887846)
- If "store\_name": [store\_name](#step-SHaqqKX3FY-887841)
- If "store\_url": [store\_url](#step-SHaqqKX3FY-887844)

<a id="step-SHaqqKX3FY-887842"></a>

## Location data

- If "Address": [Address](#step-SHaqqKX3FY-887940)
- If "Zipcode": [Zipcode](#step-SHaqqKX3FY-887924)
- If "City": [City](#step-SHaqqKX3FY-887927)
- If "Location\_lat": [Location\_lat](#step-SHaqqKX3FY-887932)
- If "Location\_long": [Location\_long](#step-SHaqqKX3FY-887939)
- If "Primary\_phone": [Primary\_phone](#step-SHaqqKX3FY-887941)

<a id="step-SHaqqKX3FY-887845"></a>

## Opening hours

- If "Monday\_hours": [Monday\_hours](#step-SHaqqKX3FY-887933)
- If "Tuesday\_hours": [Tuesday\_hours](#step-SHaqqKX3FY-887926)
- If "Wednesday\_hours": [Wednesday\_hours](#step-SHaqqKX3FY-887938)
- If "Thursday\_hours": [Thursday\_hours](#step-SHaqqKX3FY-887936)
- If "Friday\_hours": [Friday\_hours](#step-SHaqqKX3FY-887929)
- If "Saturday\_hours": [Saturday\_hours](#step-SHaqqKX3FY-887928)
- If "Sunday\_hours": [Sunday\_hours](#step-SHaqqKX3FY-887934)
- If "Special\_hours": [Special\_hours](#step-SHaqqKX3FY-887931)

<a id="step-SHaqqKX3FY-887840"></a>

## Additional Information

- If "Services": [Services](#step-SHaqqKX3FY-887930)
- If "Store\_picture": [Store\_picture](#step-SHaqqKX3FY-887925)
- If "Custom\_label1": [Custom\_label1](#step-SHaqqKX3FY-887935)
- If "is\_closed": [is\_closed](#step-SHaqqKX3FY-887937)

<a id="step-SHaqqKX3FY-887846"></a>

## store\_id

ID of the store. This must match the value sent in your [offline sales data feed](https://help.criteo.com/kb/guide/en/how-can-i-pass-my-offline-sales-data-to-criteo-Yf95KPKbjB/Steps/775624).

**Value:** String.

**Example:** 1so56

This path ends here.

<a id="step-SHaqqKX3FY-887841"></a>

## store\_name

Name of the store. Please note, this value can be used to display in the creatives.

**Value:** String.

**Example:** Rockefeller Center

This path ends here.

<a id="step-SHaqqKX3FY-887844"></a>

## store\_url

URL of the dedicated store page on your website.

Please note, this URL can be used in creatives to redirect to more information about the specific store.  If you don't have dedicated store pages on your site, we can default to a given URL.

**Value:** URL

**Example:** http://mysite.com/ stores?store=r23

This path ends here.

<a id="step-SHaqqKX3FY-887940"></a>

## Address

First line(s) of the store address excluding postal code, city, region/state and country.

Please note, this value can be used to display in the creatives.

**Value:** String

**Example:** 514 4th ave.

This path ends here.

<a id="step-SHaqqKX3FY-887924"></a>

## Zipcode

Zipcode of the store.

Please note, this value can be used to display in the creatives. 

**Value:** String

**Example:** 94120

This path ends here.

<a id="step-SHaqqKX3FY-887927"></a>

## City

City the store is located in.

**Value:** String

**Example:** San Francisco

This path ends here.

<a id="step-SHaqqKX3FY-887932"></a>

## Location\_lat

Latitude GPS co-ordinate of the store.

Please conform to the [WGS84 standard](http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf).

**Value:** Decimal

**Example:** 47.908126

This path ends here.

<a id="step-SHaqqKX3FY-887939"></a>

## Location\_long

Longitude GPS co-ordinate of the store.

Please conform to the [WGS84 standard](http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf).

**Value:** Decimal

**Example:** 1.905492

This path ends here.

<a id="step-SHaqqKX3FY-887941"></a>

## Primary\_phone

Phone number of the store.

_This data input is optional._

**Value:** String

**Example:** (765) 876-7211

This path ends here.

<a id="step-SHaqqKX3FY-887933"></a>

## Monday\_hours

Opening hours of the store on Mondays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-12:00|13:00-20:00

This path ends here.

<a id="step-SHaqqKX3FY-887926"></a>

## Tuesday\_hours

Opening hours of the store on Tuesdays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887938"></a>

## Wednesday\_hours

Opening hours of the store on Wednesdays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887936"></a>

## Thursday\_hours

Opening hours of the store on Thursdays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887929"></a>

## Friday\_hours

Opening hours of the store on Fridays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887928"></a>

## Saturday\_hours

Opening hours of the store on Saturdays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
    
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
    
-   Leave this field empty or use "x" if the store is closed on this day.
    

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887934"></a>

## Sunday\_hours

Opening hours of the store on Sundays.

-   Please present the data in the following format; HH:mm-HH:mm|HH:mm-HH:mm
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Leave this field empty or use "x" if the store is closed on this day.

**Value:** String

**Example:** 09:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887931"></a>

## Special\_hours

Special opening hours of your store on a specific day.

-   Please present the data in the following format; yyyy-MM-dd:HH:mm-HH:mm|HH:mm-HH:mm;yyyy-MM-dd
-   Use "|" to separate morning and afternoon opening hours when there is a break during the day.
-   Use "x" to represent that a store is shut on a specific date.

**Value:** String

**Example:** 2016-12-24:08:00-13 :00|14:00-20:00;2016-12-25:x;2016-12-26:08:00-18:00

This path ends here.

<a id="step-SHaqqKX3FY-887930"></a>

## Services

List of the services offered in this store. Values must be separated by pipes (|).

_This data input is optional._

**Value:** String

**Example:** Pet Grooming|ATM|Free Delivery

This path ends here.

<a id="step-SHaqqKX3FY-887925"></a>

## Store\_picture

URL to the main picture of the store.

_This data input is optional._

**Value:** URL

**Example:** http://storepicture123c.jpg

This path ends here.

<a id="step-SHaqqKX3FY-887935"></a>

## Custom\_label1

Any short marketing message you want to push which is specific to this store.

_This data input is optional. You can add multiple marketing messages by including additional custom\_label lines in your feed._

**Value:** String

**Example:** Free yoga class every Tuesday

This path ends here.

<a id="step-SHaqqKX3FY-887937"></a>

## is\_closed

In certain situations (like during the COVID lockdowns) some stores can be temporarily closed, so you may not want to leverage them when computing audiences or recommending stores to users. In this case, you can use the is\_closed field in the feed to indicate that a store is closed. Alternatively, you can delete closed stores from the feed before importing it. They won't be deleted from our database, but they will be marked as closed.

**Value:** Boolean

**Example:** 1

This path ends here.

_End of the embedded guide "Store Directory"._

<a id="step-8g1zFYawMy-891539"></a>

## event\_id

The transaction ID.  This will be used for deduplication and debugging, and to group product item data in from different lines.  
  

**Type:** String

**Example:** tr\_1234567a

This path ends here.

<a id="step-8g1zFYawMy-891533"></a>

## event\_item\_quantity

The number of products purchased.  
  

**Type:** Integer

**Example:** 2

This path ends here.

<a id="step-8g1zFYawMy-891541"></a>

## event\_item\_id

The unique identifier for each product purchased.  This must match with your online product feed.  
  

**Type:** String

**Example:** pdct\_1234

This path ends here.

<a id="step-8g1zFYawMy-891532"></a>

## event\_currency

The currency of the transaction. This must follow the 3 letter [ISO 4217 code](https://en.wikipedia.org/wiki/ISO_4217).  
  

**Type:** String

**Example:** EUR

This path ends here.

<a id="step-8g1zFYawMy-891538"></a>

## event\_item\_price

The unit price of each product purchased. There must be 2 decimal points and the decimal separator must be a point.  
  

**Type:** Float

**Example:** 43.99

This path ends here.

<a id="step-8g1zFYawMy-891534"></a>

## event\_timestamp

The timestamp should be included otherwise time of transaction will be recorded as the time of ingestion.  The timestamp should be precise to the minute for optimal accuracy.

The timestamp must follow the ISO 8601 standards with explicit timezone designator 'Z' when in UTC time zone.  
  

**Type:** Timestamp. 

UTC format: \[YYYY\]-\[MM\]-\[DD\]T\[hh\]:\[mm\]:\[ss\]Z

None UTC format: \[YYYY\]-\[MM\]-\[DD\]T\[hh\]:\[mm\]:\[ss\]±\[hh:mm\]

**Example (in UTC+1):** 2017-06-02T13:25:15+01:00

This path ends here.

<a id="step-8g1zFYawMy-891535"></a>

## user\_crmid

CRM ID of the shopper.

**Type:** String

**Example:** 00Q7000fAJuO

This path ends here.

<a id="step-8g1zFYawMy-891531"></a>

## event\_item\_alternate\_id

An additional unique identifier for each product purchased, where products have more than one identifier.

**Type:** String

**Example:** pdct\_1234

This path ends here.

<a id="step-8g1zFYawMy-891526"></a>

## event\_value

The value of the total transaction. There must be 2 decimal points and the decimal separator must be a point.

**Type:** Float

**Example:** 75.00

This path ends here.

<a id="step-8g1zFYawMy-891536"></a>

## event\_item\_id\_gtin

Global Trade Item Number (GTIN).

**Type:** String

**Example:** 00045678900012

This path ends here.

<a id="step-8g1zFYawMy-891540"></a>

## event\_item\_category

The category of each product purchased.

**Type:** String

**Example:** Shoes

This path ends here.

<a id="step-8g1zFYawMy-891529"></a>

## event\_item\_brand

The brand of each product purchased.

**Type:** String

**Example:** Nike

This path ends here.

<a id="step-8g1zFYawMy-891537"></a>

## event\_item\_id\_mpn

The MPN of each product purchased.

MPN (Manufacturer Part Number) is the unique identifier used by brands to identify their products.

**Type:** String

**Example:** 000123456

This path ends here.

<a id="step-8g1zFYawMy-891530"></a>

## event\_custom\_data

Any additional information you wish to provide about this sale. 

  

**Type**: Event Dependent 

  
**Example**: Dependent on event

This path ends here.

<a id="step-8g1zFYawMy-4979060"></a>

## store\_id

The ID of the store in which the sale occurred.

We also highly recommend that you provide us with a Store Directory feed to enable us to effectively drive shoppers to your stores and improve campaign targeting.  

**Type:** Integer

**Example:** 75020

Next: [Store Directory](#step-8g1zFYawMy-4979061)

<a id="step-8g1zFYawMy-4979061"></a>

## Store Directory

See [Store Directory](#step-SHaqqKX3FY-775587) above.

This path ends here.

_End of the embedded guide "Offline sales onboarding - flat file feed integration"._

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

## Offline sales onboarding - API integration

<a id="step-ssFLphogRs-775602"></a>

## Offline sales onboarding - API integration

Integration through Criteo's offline sales onboarding API offers an automated way to upload your offline sales data, and means sales can be ingested into Criteo’s identity graph in real-time.

The offline sales onboarding API is a writing REST API which uses a POST method with JSON Request body.  An example of the full JSON request body can be found [here](https://jsfiddle.net/0mjkptoL/1/).

Please see below the set of transaction data parameters that must be provided in the JSON Request body in order to pass your offline sales data to the Criteo Offline API. 

To request access to the offline sales onboarding API endpoint, please get in touch with your Criteo Account Strategist.

Next: [1.1 - account data](#step-ssFLphogRs-910085)

<a id="step-ssFLphogRs-910085"></a>

## 1.1 - account data

Next: [2.1 - id data](#step-ssFLphogRs-910086)

<a id="step-ssFLphogRs-910086"></a>

## 2.1 - id data

Criteo uses hashed email as the identifier parameter. 

Emails will be ingested into Criteo’s identity graph as SHA256 of an MD5. If you are unable to provide emails in this format you can provide either raw or MD5 encrypted emails, which will be hashed on the fly by Criteo before being ingested.

Next: [3.1 - events\[ \] data](#step-ssFLphogRs-910087)

<a id="step-ssFLphogRs-910087"></a>

## 3.1 - events\[ \] data

Please find below the event parameters that must be pushed to Criteo as an array.  Each event is a JSON object with a predefined parameter.

This path ends here.

_End of the embedded guide "Offline sales onboarding - API integration"._

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

## Store Directory

See [Store Directory](#step-SHaqqKX3FY-775587) above.

This path ends here.

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

## Capture online store intent with Criteo OneTag

<a id="step-qRtjqWgKzF-775618"></a>

## Capture online store intent with Criteo OneTag

**Overview**

There are several events or pages on your website which can provide useful physical store intent signals, which through Criteo OneTag, we can use to enhance performance of your store campaigns. 

Please see below the different store intent signals that you are likely to have available on your website, along with detailed configuration of Criteo OneTag to start tracking these events.  

We strongly advise that you implement all scenarios that are relevant to your site to maximize the performance of your store campaigns.

**1.1 - 'Recommended' or 'Favorite' Store** 

A 'recommended' store provided by an algorithm based on a shopper's location (where permission has been granted), or a 'favorite' store specifically registered by the shopper, provide strong intent signals of the physical store they prefer to visit.

If you have these capabilities on your website, these events should be added in all events across your site:

-   Homepage event
    
-   Product page event
    
-   Search page event
    
-   Basket page event
    
-   Transaction conclusion page event
    
-   Search page event
    

NB: If both 'recommended' and 'favorite' store are available, always prefer the 'favorite' store.

1.1.1 **Script for 'recommended' or 'favorite' store events**

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>  <script type="text/javascript">    window.criteo_q = window.criteo_q || [];    window.criteo_q.push(      { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },      { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },               { event: "viewHome"},      { event: "setZipcode", zipcode: "STORE ZIPCODE" },      { event: "setStore", store_id: "STORE ID" }    );  </script>`

   

2.1 **Store Locator main page or search page**

There are several formats of Store Locator pages that you may have on your site:

-   Store Locator main page
    
-   Store Locator search page
    
-   Store Locator listing page
    
-   Store Locator search result page
    

Please see below the events that need to be added to these pages.

2.1.1 **Script for Store Locator main page or search page**

Whenever (and only when) a shopper accesses the Store Locator main page or search page the following event should be added to the OneTag:

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>  <script type="text/javascript">    window.criteo_q = window.criteo_q || [];    window.criteo_q.push(      { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },      { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "viewStore", user_segment: 18 }    );  </script>`

   

2.1.2 **Script for Store Locator listing or search result page**

If your Store Locator page provides a search functionality, then add the following event to the Criteo OneTag to pass us the result of the search operation by providing the store IDs in the store\_id array.

If the search criterion is a postal code, then include it in the zip\_code array.

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>  <script type="text/javascript">    window.criteo_q = window.criteo_q || [];    window.criteo_q.push(      { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },      { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "viewStore", store_id: ["FIRST STORE ID", "SECOND STORE ID" /* add a Store ID for each store in the list */], zipcode: "SEARCH ZIPCODE", user_segment: 18}    );  </script>`

   

3.1 **Store detail page**

Whenever the detail page of a specific store is viewed, the event must be captured.

3.1.1 **Script for store detail page**

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>  <script type="text/javascript">    window.criteo_q = window.criteo_q || [];    window.criteo_q.push(      { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },      { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "viewStore", store_id: "STORE ID", zipcode: "STORE ZIPCODE", user_segment: 18 }    );  </script>`   

NB: 'Zipcode' is the postal code of the specific store identified in the 'store\_id' field.

4.1 **Reserve a product in-store**

If your website has the capability to allow shoppers to reserve products in-store, without purchasing in advance, the following event must be defined inside the Criteo OneTag.

4.1.1 **Script for product reservation**

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>   <script type="text/javascript">     window.criteo_q = window.criteo_q || [];     window.criteo_q.push(               { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },               { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },           { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "reserveInStore", item: [        { id: "FIRST PRODUCT ID", quantity: FIRST PRODUCT QUANTITY, price: "FIRST PRODUCT PRICE" },        { id: "SECOND PRODUCT ID", quantity: SECOND PRODUCT QUANTITY, price: "SECOND PRODUCT PRICE" },        /* add a line for each product to be reserved */],      zipcode: "STORE ZIPCODE", store_id: "STORE ID", user_segment: 18 }    );  </script>`

   

NB: 'Zipcode' is the postal code of the specific store identified in the 'store\_id' field.

5.1 **Click & Collect**

Where you have 'Click & Collect' functionality on your site, the 'trackTransaction' event in Criteo OneTag should be configured as below.

5.1.1 **Script for Click & Collect**

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>   <script type="text/javascript">     window.criteo_q = window.criteo_q || [];     window.criteo_q.push(               { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },               { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },           { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "trackTransaction", id: "TRANSACTION ID", delivery: "store", store_id: "THE STORE ID", zipcode: "STORE ZIPCODE", user_segment: 18, item: [         { id: "FIRST PRODUCT ID",  price: FIRST PRODUCT UNIT PRICE,  quantity: FIRST PRODUCT QUANTITY },        { id: "SECOND PRODUCT ID", price: SECOND PRODUCT UNIT PRICE, quantity: SECOND PRODUCT QUANTITY }                                                                      /* add a line for each product in the user's basket */   ]});   </script>` 

  

NB: The 'delivery' parameter should be set to 'store'.  The 'zipcode' is the postal code of the specific store identified in the "store\_id" field.

6.1 Check availability in-store

The 'checkAvailability' event should be specified in the Criteo OneTag each time a user uses the 'check availability in store' functionality on your site. 

If the feature makes use of a search by postal code then you should specify the postal code in the 'zipcode' parameter and the IDs of the result of the search in the 'store\_ids' parameter.

6.1.1 **Script for 'check availability in-store'**

`<script type="text/javascript" src="//dynamic.criteo.com/js/ld/ld.js?a=YOUR_PARTNER_ID" async="true"></script>  <script type="text/javascript">     window.criteo_q = window.criteo_q || [];     window.criteo_q.push(               { event: "setAccount", account: YOUR UNIQUE ACCOUNT ID },               { event: "setSiteType", type: "m FOR MOBILE OR t FOR TABLET OR d FOR DESKTOP" },      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },      { event: "checkAvailability", item: {id: "PRODUCT ID"}, zipcode: "STORE ZIPCODE", store_id: ["FIRST STORE ID", "SECOND STORE ID" /* add a Store ID for each store */], user_segment: 18 }   );  </script>`

NB: 'Zipcode' is the postal code of the specific store identified in the 'store\_id' field.

7.1 **A note about the collection of zip codes**

All the zip codes collected by Criteo are manipulated and stored in respect of the GDPR and the general PII best practices.

This path ends here.

_End of the embedded guide "Capture online store intent with Criteo OneTag"._

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

## Using a local inventory feed

<a id="step-zYwi3Leylx-775588"></a>

## Using a local inventory feed

**1\. Why should I share this data?**

To provide the best experience to your shoppers, we advise that as part of your offline setup you provide us with a Local Inventory file.  This provides Criteo with local product price and availability across your store network, ensuring that we accurately drive shoppers to stores with products that are available at that store.

  

**2\. Format overview and frequency**

-   We accept CSV or TSV (comma- or tab-separated values) files.
    
-   The header must be declared in the first row of the file and must be provided in lower case without spaces.
    
-   Each line of the file must be a distinct combination of store\_id x item\_id.
    
-   Files can be uploaded to the Criteo FTP or SFTP, or downloaded from your own FTP, SFTP or http(s) servers by Criteo.  Get in touch with your Criteo Account Strategist to agree on the integration method that is best for you.
    
-   We require daily file updates by default but this can be more frequent if required, depending on the file size.
    
-   All file feed updates must be provided in full (store\_id x item\_id) including flags for products which have become out of stock.
    
-   PLEASE NOTE: If a new file does not include a store\_id x item\_id that was provided in the past, information about this store\_id x item\_id will be lost after 24 hours.
    
-   If we don't receive information for a given store\_id x item\_id, this item will be considered out of stock at that store.
    
-   If the price is missing for a store\_id x item\_id, we will consider the product out of stock.
    
-   If a store\_id x item\_id is missing from the feed, we will use the price and the availability for this same item\_id from your main Criteo product catalog.
    

  

  

**3\. List of required fields  
  
**

3.1.1 **store\_id**

ID of the store.

This must match the value sent in your offline sales data feed .

**Value:** String.  

**Example:** 1so546

  

  

3.1.2 **item\_id**

ID of the product.

This must match the value sent in your offline sales data feed , Criteo OneTag and main Criteo product feed.

**Value:** String.

**Example:** p123tc

  

  

3.1.3 **quantity**

Number of items in stock at the store.

Please note: If the availability of a product has not been provided, we will consider a product available at a store when quantity > 2.

**Value:** Integer.

**Example:** 14

  

  

3.1.4 **price**

This is the Recommended Retail Price of the product as provided by the manufacturer.

The price will be displayed in the same currency as your site.  Only populate this field with a numeric value using a period (.) as the decimal separator and no separator for 1000s.

**Value:** Float.

**Example:** 1299.99

  

 3.1.5 **sale price**

This is the price at which the product is available for purchase within a store.

The price will be displayed in the same currency as your site.  Only populate this field with a numeric value using a period (.) as the decimal separator and no separator for 1000s.  
**_This field is optional_**

**Value:** Float.

**Example:** 999.99

  

  

3.1.6 **availability**

This indicates the availability of the product at the specified store\_id.  
There are 3 values that can be used here:  
Preorder: the item is available for order but cannot be shipped currently.  
In stock: the item is available for order and shipping.  
Out of stock: the item is not available for order or shipping.  
Please note: items marked "Out of stock" will be excluded from banners.  
**_This field is optional_**

**Value:** String.

**Example:** In stock

- If "How can I pass my offline sales data to Criteo?": [How can I pass my offline sales data to Criteo?](#step-zYwi3Leylx-910811)
- If "Product catalog specification": [Product catalog specification](#step-zYwi3Leylx-910810)

<a id="step-zYwi3Leylx-910811"></a>

## How can I pass my offline sales data to Criteo?

_Part of this guide is not public._

This path ends here.

<a id="step-zYwi3Leylx-910810"></a>

## Product catalog specification

_Part of this guide is not public._

This path ends here.

_End of the embedded guide "Using a local inventory feed"._

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

## Activate the Criteo Offline Sales native Snowflake app

[Video](https://content-enablement.wistia.com/medias/81q3t6ntsv)

> **Tip:** **Before you get started, ensure that:** 
>
> 1.  You reach out to a Criteo representative to activate this integration. 
>     
>
> 2.  You have the Criteo partner ID. 
>     
>
> 3.  You have the Account Admin Role assigned to you in Snowflake. 
>     
>
> 4.  You have the offline sales data table that includes Timestamp, Email address/ Hashed email, Transaction ID, Total purchase amount, Currency (optional) and a column with an array of products being purchased with this transaction that contains the Product Id, price and amount.

The Criteo Offline Sales app enables secure sharing of your offline sales data from your Snowflake environment directly into Commerce Growth. This allows you to connect offline sales with online behavior, supporting store attribution and campaign optimization.  

##### **Install the Criteo Offline Sales app**

1.  Open the Snowflake interface. 
    

2.  From the left navigation menu, go to **Data Products > Marketplace.** Then, search for **Criteo Offline Sales**. 
    
3.  Click **Get**.  
    
4.  When prompted, grant permission to access Criteo API endpoints and share data over SSL by clicking **Connect**.   
    

Your app installation is done.

Next: [Configure the Criteo Offline Sales app](#step-4469235)

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

## Configure the Criteo Offline Sales app

Once you have installed the app, you can configure it by following the steps below. 

1.  The first step is to enter your **Account Id** provided to you by a Criteo representative.   
    
2.  Next, you will be prompted to select and allow access to the table that keeps your offline sales data. Select the table and click **Save**.   
    
3.  For each column in the table, select the corresponding field in the database. Optionally, you can choose to provide access to Cortext AI for simplified table mapping. If you use AI mapping, a manual review is recommended to ensure accurate mapping.    
    
4.  The final step is to schedule the import to enable data change tracking and execute imports. Under the **Import** section, click **Enable data change tracking**. Once this is enabled, you will see the **Start Import** button. Your import will run successfully. 
    
5.  To see the import history and the time the latest import was running, navigate to the Dashboard section.

Next: [What happens next?](#step-4469238)

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

## What happens next?

Once the configuration is complete: 

-   All changes to the selected table will automatically sync with Criteo. 
    

-   Offline sales data will appear on the Criteo platform within minutes. 
    

-   This data will be incorporated into attribution reporting and will be available for targeting within Commerce Growth.

This path ends here.
