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

Criteo OneTag on your homepage

Overview

Implementing Criteo OneTag on your homepage allows us to track bouncers (users who land on your homepage but leave your site without making a purchase). Criteo can then display banners with best-seller products to these users.

The Criteo OneTag should be implemented within the header code of every page on your site. The tag loads asynchronously so it won't interfere with the page loading time or the user experience.

Only two parameters have to be passed dynamically into the Criteo OneTag when implemented on your home page, the setSiteType and setEmail parameters.

The Criteo OneTag implemented on a homepage:

<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 || [];
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"}
);
</script>

The viewHome event

The viewHome event is the Criteo OneTag specific event when the tag is implemented on your homepage. Please do not modify it. 

 { event: "viewHome"}

setSiteType parameter

The setSitetype parameter is a dynamic parameter that will be present in the Criteo OneTag across all the pages of your site. If your site has different versions, indicate which version of your site is displayed to the user via the setSiteType parameter:

    • d for desktop
    • m for mobile
    • t for tablet

More information on the site type here

Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk