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

What if I sell products to customers in different countries on the same website?

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="//static.criteo.net/js/ld/ld.js" 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"}
);
</script>
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk