Sign in

Welcome to our Support Center

Get help with integration and live campaigns

Welcome to our Support Center. Get help with integration and live campaigns

Managing setup for different countries

If your website sells products to customers in more than one country, US & CA for example, you need to dynamically switch the Criteo account ID for each country. 

In the example below, you will see that an additional variable criteo_ID has been added to the Homepage tag. The value of this variable needs to be dynamically updated to the specific #Country Account ID#, based on the country that the user selects. This logic needs to be added to ALL of Criteo Onetag on your website.

Example of country specific account ID implemented on the Criteo Onetag:

<script type="text/javascript" src="//" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
var criteo_ID = #Country Account ID#;
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: criteo_ID },
        { event: "setSiteType", type: deviceType },
      { event: "setEmail", email: "TRIMMED AND LOWERCASE USER EMAIL ADDRESS" },        
{ event: "viewHome"}
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk