Commit 4aee0e7e by Nilu

S12523990 # Client - Incoming Issues (raised by Client) #Tapfiliate / GTM - We…

S12523990 # Client - Incoming Issues (raised by Client) #Tapfiliate / GTM - We need to use GTM data layer to expose the username on everypage
parent 4fbc87ad
......@@ -41,6 +41,11 @@
<!-- Google Tag Manager -->
<script>
dataLayer = [{
'username': '<%= clientUser != null ? clientUser.getUserName() : "" %>',
}];
</script>
<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-WFZ4NVT');
</script>
<!-- End Google Tag Manager -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment