Operator supportIssue08 Jan, 2025
Last edited: 08 Jan, 2025, 7:35 PM
  Support post  

(Issue #MS-IS-0801-327) Request: We would like to have Google Tag Manager installed on HivedMusic.com.

Request:

Install Google Tag Manager on HivedMusic.com.

Suggestion:

Short term, we are willing to be the GTM test pilot for you. I imagine that it would make sense to implement GTM in a similar fashion to how you support GA-4, where you could add an entry for the GTM identifier into Network > Essentials > Analytics.

Reasoning:

We need to use GTM (Google Tag Manager) for detailed tracking. Once the code snippets are added (there are two), GTM allows us to adjust our tracking dynamically, without requesting changes from Maincross.

Adding GTM will allow us to use GA-4 for tracking and reporting, as well as allowing us to perform detailed event tracking.

How is GTM Installed:

Two snippets of code are required to be embedded, one as high in the <head>of the page as possible and the other immediately after the opening <body> tag.

The code snippets for HivedMusic.com (already defined in GTM) have been sent separately via email.

GTM and GA4

You can use GTM and GA4 together to enhance and improve effective tracking. For example, you can use GTM to deploy and manage GA4 tracking codes. This can streamline the implementation process, provide centralized control and flexibility, and reduce business costs.

Also, while GTM can be used to install / use GA-4, it is acceptable to add the GTM snippets alongside the GA-4 snippet that you already include.

Background to request for clarity (from AI 😁)

Google Tag Manager (GTM) and Google Analytics 4 (GA4) are different tools with different functions:

GTM

A tag management system that allows you to add, edit, and remove tags without changing your website's code. GTM tracks and collects data, but it doesn't store it. You can use GTM to deploy and manage tags for various marketing tools, including Google Analytics and Google Ads.

GA4

An analytics tool that collects, analyzes, and reports on user data based on their interactions with your website and apps. GA4 stores data and provides detailed insights and data analytics capabilities.

Type

Bug
Feature

Status

Open
In progress
Resolved
Won't fix
Invalid
Duplicate

Priority

High
Medium
Low
Save, embed, share, report
0comments
Commented 46 minutes ago

This is already supported, please see comment https://www.maincross.net/p/content-oet2wtf83wdaf9w##reply8041


Replied 42 minutes ago

You are incorrect. You are conflating GTAG and GTM. They are different.

I had read that, and set that up in HivedMusic.com (Maincross) a very long time ago. Yes it works. But it is distinctly different.

I have GTM installed, tested, and operational on other sites. What you are referring to (GTAG- Google Tag), is different than GTM (Google Tag Manager). Check the code snippets that I sent in email. The code snippet for GT- is different than the code snippets for GTM. The identifier for Google Tag Manager would be GTM-fdkajfdsj format.


Replied 37 minutes ago

The main differences between Google Tag (GTAG) and Google Tag Manager (GTM) are:

Functionality GTM offers more functionality than GTAG, including:

  • Testing: GTM allows you to test codes Version control: GTM allows you to control versions
  • Debugging: GTM allows you to debug
  • Centralized management: GTM allows you to manage tracking in one place
  • Collaboration: GTM allows you to collaborate with others

User interface

GTM has a graphical user interface (UI) that's designed to be user-friendly. GTAG requires JavaScript knowledge for advanced tracking configurations.

Compatibility

GTM is compatible with third-party marketing tools that have JavaScript-based tracking code. GTAG is only compatible with Google marketing tools.

Implementation

GTM is a tag management system that simplifies the process by providing a container code snippet. GTAG is a JavaScript code snippet that needs to be manually implemented on each website page.

You can use both GTAG and GTM side by side, but you should make sure that only one pageview is fished to avoid duplicate data.


Replied 37 minutes ago

Replied 24 minutes ago

Code Snippets for GTAG and GTM listed below. Please note the differences.

This is the code snippet for GTAG, as installed and operational on HivedMusic.com.

<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-TBZHQZ9GX8"></script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'G-TBZHQZ9GX8');

</script>

The following are the GTM Installation Instructions from Google Tag Manager, for HivedMusic.com:

Install Google Tag Manager

Copy the code below and paste it onto every page of your website.

1. Paste this code as high in the <head> 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','GTM-MNVCCX29');</script>

<!-- End Google Tag Manager -->

2. Paste this code immediately after the opening <body> tag:

<!-- Google Tag Manager (noscript) -->

<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MNVCCX29"

height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

<!-- End Google Tag Manager (noscript) -->


Explore more channels?Show all

product
product release notes
Stories & use-cases
Operator support
Community talk
MainCross

More from this channel

Select between trending, latest and important content.