Implement Criteo OneTag via Google Tag Manager for Drupal

Standard

Setup Crieto OneTag for Drupal using Google Tag Manager without touching Code of Drupal 

Recently once client ask me to implement Criteo OneTag via Google Tag Manager without touch Code of Drupal, I asked client run a test order to see possibility via Google Tag Manager for Crieto OneTag for Drupal. I placed a test order on Drupal for Criteo OneTag after placed test order all the possibility to setup without touching code of Drupal using Google Tag Manager for Drupal.

Require these Tags need to Implement Criteo OneTag on BigCommerce Stencil Themes to Work using Google Tag Manager

  1. Homepage dataLayer using Google Tag Manger for Crieto OneTag for Drupal
  2. Listing page dataLayer using Google Tag Manager for Crieto OneTag for Drupal
  3. Product page dataLayer using Google Tag Manager for Crieto OneTag for Drupal
  4. Basket page dataLayer using Google Tag Manager for Crieto OneTag for Drupal
  5. Sales Confirmation page dataLayer using Google Tag Manager for Crieto OneTag for Drupal

1. Install Google Tag Manager via Google Tag Manager on Implement Criteo OneTag via Google Tag Manager for Drupal

Paste this code as high in the <head> of the page as possible:
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX

Leave a Reply

Your email address will not be published. Required fields are marked *