What is the difference between google tag manager and google analytics? [closed]
Asked Answered
W

9

217

I am reading about web analytic and came across GTM and GA.

It seems that GA is a service provided by Google which generates reports and statistics on website traffic. As per my limited understanding in order to generate these reports we need to perform some type of tagging at our end.

It also looks like that in GTM also we need to add some tags on our website.

So, if both GA & GTM are related to tagging what is the difference between them and why do we have two different products by google.

Wold answered 13/5, 2014 at 20:7 Comment(2)
I’m voting to close this question because its not programming related asks us to compare two web applications.Ediva
I voted to close this question because it is not a programming question and it is off-topic on Stack Overflow. Non-programming questions about your website should be asked on Webmasters. In the future, please ask non-programming questions about your website there.Cavetto
L
219

Google Analytics' main job is really just generating the reports and statistics about your website, like how many people saw your website yesterday, what web browser they used, which pages were the most popular, etc. The only way it can know this stuff is if you put a "tag" on all of your pages. The tag is the javascript code on your pages that runs on the visitor's browser, which tells Google Analytics' servers that they are visiting the page right now.

There's no problem if you just want to put the tag in the master file of your website so it shows up on all of your pages. Google Analytics can use the "referrer" parameter to figure out which page the visitor is on and can do all the simple stuff like counting page views.

However, you may want to track how many people use a specific feature. Maybe you want to group certain pages together or count some similar but different URLs as being the same page. Now you need unique tags for all these different features and groups of pages so Google can identify which feature or type of page got used or visited. Now it's complicated! You have multiple tags, and you only want the tags to "fire" sometimes (e.g. don't fire unless they click this button or use this feature.)

Google Tag Manager makes it easier to manage this mess of tags by letting you define rules for when your tags should fire. It also lets you test your tags to make sure they go off when you load the right page or click a certain button. This is done by putting the Tag Manager's code on your website instead of the actual tags, and as Crayon's answer points out, the tag manager outputs the tags for you. This gives you another cool benefit: you can change your tags and the way they work without actually changing the source code of your website (which you may not be able to do because of slow-release cycles) -- instead you just change it from the Google Tag Manager website, and it will spit out different code on your pages dynamically when they're loaded in the visitor's browser.

Leatheroid answered 13/5, 2014 at 20:7 Comment(2)
I really don't agree with those who say you can manage your tags from GTM, it's not true. If you don't tag things in the first place, then there is no way you can "change tags and the way they work without actually changing the source code of your website". You must tag things first, in the code. So, if you want to change things you tags from existing tags in the dataLayer, it's fine. But don't expect adding new tracked stuff magically from GTM itself without changing the source code.Doug
@Doug the very definition of change requires for something to exist in order to be changed.Metacarpal
A
64

GA is the analytics tool that provides reports about activity on your site. GTM is a tag manager that can output tags based on defined rules. So for example, you can either implement your GA code on your site directly, or you can implement the GTM code and use GTM to output the GA code.

The main benefit of GTM (or any tag manager worth anything) is that you can use it for multiple tags or code snippets or pretty much anything you want. Usually you implement a data layer and a set of rules, and then within the tag manager interface, put a new tag or code snippet under those rules, using stuff from the data layer. That way for example, if you use GA today and then tomorrow want to also implement a different analytics tool e.g. Adobe Analytics, you can just do it within the GTM interface following the same rules and data layer you setup already.

So IOW GTM is a container in which to output other stuff. GA is one of the "other stuff" you'd output.

Audette answered 13/5, 2014 at 22:31 Comment(3)
does stuff like this still work then when placed in the code of my website: ga('send', 'event', { eventCategory: 'Form', eventAction: 'Subscribtion',eventLabel: 'Subscribtion [name]'});Cowper
With GTM you would use onclick="dataLayer({event: 'subscription', eventLabel: this.action})". GTM would replace GA on your site so the ga variable would not be available. youtube.com/watch?v=iknwOXX7jAsEpigraph
GTM is overcomplicated to use. Tracking one simple variable makes so much work to do on both GA/GTM while it could be so much simpler.Doug
P
12

Google Analytics + Tags + Tag manager = Website Stats

Google Analytics is used to form Reports about the no. of people visiting your website, their location, the browser they are using. GA gets this information from the tags.

Tags for each and every action that happens on the website has a separate tag. For example, If I wanna play a video on a website, I need to click a button to play a video, that button has a tag. If I wanna make a purchase or need to submit a review form, I need to click buttons again those buttons will have a separate tag. So, the no. of time video button is clicked the tag assign with that buttons send the information to the Google Analytics to form stats.

Tag Managers As a word explains tag managers manage tags. For each website there are Hundreds and thousands of tags. Each tag needs to be assigned rules. For example: Take the previous example, If I wanna play a video on a website I'll click a button which will be having some tag. Now, this tag should know that it needs to be fired only when a user wants to play a video and for nothing else. For this certain set of rules are assigned to the tag. These rules are assigned by the Tag manager.

In a nutshell The tag manager assigns rules to the tag. Tag collects data the number of times there is action and sends it to Google Analytics.GA collects these data and forms stats, Showing User how the page is performing.

Physicality answered 27/6, 2019 at 7:6 Comment(0)
T
11

Google Tag Manager and Google Analytics are completely different products, they just work well together.

Google Analytics stores, aggregates and manipulates data for you, which you can output upon request. Google Analytics also provides a handful of recommended code snippets that allow you to 'install' it on your site. However, these are just recommendations. Ultimately, Google Analytics will process any data that it receives in the correct form, and doesn't care about how it is implemented.

Google Tag Manager allows you to insert custom HTML into your site. You can edit that HTML any time you like, and push changes instantly. It also provides listeners for a number of things such as clicks and form submits, and has a structure for the deployment of tags. Properly used, Google Tag Manager deploys your tags for you. It dictates which data is collected, and when your tags fire. It can fire almost any analytics tag, and much much more. In fact, you could use it to insert pretty much any code onto your website at the push of a button.

So you see, Google Tag Manager inserts custom HTML into your site, including analytics tags. These take the data from your site, and send it to Google Analytics. Google Analytics then analyses this data.

Tallman answered 9/5, 2016 at 13:54 Comment(0)
D
7

Google Tag Manager (GTM) is a tag management tool. Google Analytics, Google Adwords, Remarketing, Hotjar, Adobe are some of the tags that GTM manages and much more..

GTM is a container script that you add to website once. Any further modifications for tracking can be done within GTM without playing with website code any further.

GTM is just a way to embed tracking code in the website, even after embedding it does not track or collect data till you add Google Analytics id in its configuration.

GA is reporting and analysis tool and GTM is more like GUI driven tech tool targeted at non-developers.

Distribution answered 5/1, 2017 at 15:3 Comment(0)
C
3

Google Tag Manager lets you manage various Javascript tracking codes (also known as Tags) on your website. Google Analytics tracking code is one of those tags.

Google Analytics is an analytics tool that provides reports. Google Tag Manager has no reporting features. It is used to send data from your website to other marketing/analytics tools (including GA).

Imagine that Google Tag Manager is a Toolbox, where you keep all your tools: a ruler (Google Analytics), a hammer (Google Ads).

More detail from https://www.analyticsmania.com/post/google-tag-manager-vs-google-analytics/

Chloechloette answered 26/11, 2021 at 8:35 Comment(0)
C
2

Google Universal Analytics captures and provides the actual analytics data to the site administrator. For basic page tracking, Google Analytics provides everything that you would need. For more advanced tracking such as events, Google Analytics provides the capability as well, but requires the developer to add in the event handling via scripts into the code base.

Google Tag Manager DOES NOT do any detailed tracking, it uses tags such as Google Universal Analytics to actually do the tracking. What it does provide is a way of doing advanced tracking outside of the code base. The advanced tracking is configured using the Tag Manager UI rather than coded in.

cross posted from https://trajano.net/2017/01/migrating-universal-analytics/2/

Ctenidium answered 10/1, 2017 at 1:46 Comment(0)
M
1

GTM is more generic and can be used for other purposes like Variable Containers that can change configurations without changing you App code. GTM is easier to use for marketer without need for developers. One can connect GAnalytics to GTM so all hits can be seen on GA dashboard.

Those are some reasons why to use GTM: http://www.lunametrics.com/blog/2014/04/08/8-reasons-start-google-tag-manager/

For Android, A draft implementation is at https://developers.google.com/tag-manager/android/v4/#getting-started

Mastery answered 17/3, 2016 at 9:53 Comment(0)
L
0

if both GA & GTM are related to tagging what is the difference between them and why do we have two different products by google.

You can implement Google Analytics tracking on your website in two different ways

gtm.js - Google Tag Manager

GTM is mainly just a platform that you send data to.

As you said, installing GTM requires tagging; it involves code changes on your website, yes. However, if you do choose to use GTM, you only need to install GTM, forget about installing GA. Once it is installed, you shouldn't have to do any more coding unless you have custom things to track such as interactions that involve more than just a click or two. For instance, tracking all of the filters used to perform a search on your website.

With GTM, you send it a payload of data through an array called dataLayer, and then you go into the GTM user interface and choose what to do with that data. You can send it to Google Analytics, perform custom scripts, execute marketing tags, interact with plugins that can change the look and feel of the web pages, and so much more. In other words, you are not limited to where you can send the data when it is received by GTM.

A lot of this data is sent automatically, like the Page Title, the Click URL, the Form ID, Page URL. There is a long list of automatically collected data points when you have GTM installed.

For example, you can have GTM automatically track form submissions and send custom event data to GA so you can measure your pages marketing performance easier. You can also use that same data to execute a Facebook pixel.

gtag() - Google Analytics

If you choose this option, there is no interface available for you. Yes, you can log into GA's user interface and generate reports, but it does not mean you can just choose from a dropdown what you want to track with GA. Instead, your developer must be with you every step of the way or you will not accomplish a proper and accurate analytics setup.

For instance, if you needed to track clicks on a specific button (or CTA) of your landing page, your developer will have to write code that listens for that click and then send the data directly to GA.

Two Products

To sum this up, yes, there are these two Google products (GA & GTM). However, these products do two completely different things. The difference depends upon how easy you want to track things. Do you want to click some buttons in a user interface, fill out some forms, and be done with it? Or, do you want to hardcode it all yourself (or with a developer)?

Ledger answered 4/1, 2023 at 6:3 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.