Google Analytics has 2 ways to track the metrics of a site: Universal Analytics or Google Analytics 4.0. This article explains more about these 2 options: Universal Analytics versus Google Analytics 4 data


To identify what process to follow check if the ID starts with "UA" or with "G". 


1. UA:


If the ID starts with "UA" it's a Universal Analytics ID, follow the instructions in this article to install this type of Analytics: Install Google Universal Analytics Tracking


2. G:


If the ID starts with "G" this corresponds to a Google Analytics 4 tag. To add this type of ID follow the instructions on this article in the Google Analytics console, the Tag will look like this with the Analytics ID:  https://developers.google.com/tag-manager/quickstart


There are two sections where you need to add the code provided. The first part of the code goes in the HEAD section, to do this go to:


Settings > Design Settings > Custom CSS/HEAD > Additional HEAD Code:



Add the following code and simply replace GTM-XXXXXX with your container ID:


<!-- 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-XXXXXX');</script>
<!-- End Google Tag Manager -->


Then to add the Tags use a widget called: Bootstrap Theme - Google Tag Manager Code widget. To edit this widget and add the code go to:


Toolbox > Widget Manager > search for: Bootstrap Theme - Google Tag Manager Code widget > Edit:



The Tag code has the following format. Once again, replace GTM-XXXXXX with your container ID:


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




If after following the instructions on this article to set up Google Analytics, these are not working as expected, use this tool to see errors with the Google Tag Manager code added to a site, and the possible solutions: https://tagassistant.google.com/ 


For additional questions or help setting this up, please submit a ticket to [email protected] or create a ticket HERE.