Usercentrics - PUBLIC

How do I configure Google Tag Manager and Usercentrics with a custom Data Layer name?

The following article will show you which changes you need to make, in order to successfully setup the Usercentrics CMP and Google Tag Manager with a custom Data Layer name:

  1. Go to Service Settings > Advanced Data Processing Settings > Google Tag Manager / Data Layer in your Usercentrics Admin Interface.

  2. Give your Data Layer a name:

     

  3. Adjust the Google Tag Manager script in the <head>-area of your website accordingly:

    <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!='YOUR_DATALAYER_NAME'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','YOUR_DATALAYER_NAME','YOUR_CONTAINER_ID'); </script

 

Usercentrics - PUBLIC