Install Google Tag Manager

Google Tag Manager (GTM) contains the Google Analytics (GA) tracking code and it's where we define all the global properties' tracking standards.

Planet 4 Pages

Add your Google Tag Manager ID directly at WordPress Planet 4 settings:

External Systems (Engaging Networks, Hubspot, etc)

To implement GTM, these two snippets must be implemented on all pages of a website, preferable in a master template. Insert this code as high as possible in the <head> Tag 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','YOUR-GTM-CONTAINER-ID');</script>
<!-- End Google Tag Manager -->

In addition, paste this code immediately after the opening of the <body> Tag:

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=YOUR-GTM-CONTAINER-ID" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

Don't forget to change YOUR-GTM-CONTAINER-ID. You can get your Google Tag Manager ID at Admin > Container > Install Google Tag Manager

Last updated