Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC:

Google Tag Manager 7 years 3 months ago #4179

  • specialized
  • specialized's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Dear xerte community

Is it possible to add a script to the Xerte installation in order to capture usage with the Google Tag Manager code?

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-HWKL2" height="0" width="0" style="display:none;visibility:hidden">
<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=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-HWKL2');</script>
<!-- End Google Tag Manager -->

Any advice is welcome
Peter Leffek

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.039 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search