How to Set Up Google Tag Manager and Google Analytics 4 on Shopify

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Music] google tag manager is a standalone free tracking tool and management platform that allows its user to add snippets to their website marketing tags and collect marketing data google tag manager has helped a lot of online marketers in making their life easier so google tag manager lets you manage various javascript tracking codes which is also known as tags on your website and google analytics tracking code is one of those tags google analytics on the other hand is a reporting tool that analyzes your website activity since google tag manager has no reporting feature it's used to send data from your website to other marketing or analytics tool including google analytics both work together and we will walk you through and how to set this up on your shopify website since we also now have google analytics for before we start make sure that you're using google chrome as your web browser because it'll sync all of your accounts and we will also be using google chrome extension to verify our installation make sure that you're also logged in to the correct google account access your shopify admin by going to www.shopify.com what we need to do next is to set up your google tag manager you can access google tag manager at tag manager.google.com it will automatically log you in to your google account we're going to set up our first google tag manager account click on the create account button or in the white space to start creating your account enter your company name indicate the country and put a check on the shared data anonymously with google and others on the container setup type in your website address on the field and choose the target platform since we're just using a website then we will be selecting web then click the create button agree to all the terms of service agreement you now have the google tag manager snippets what we just need to do is to add the snippets to your shopify website to view your gtm snippet you can also click your gtm number or gtm id located on top now if you're not into coding then don't worry we're the same but seriously we can install the snippets without any knowledge of coding the top snippet is for the head tag and the bottom snippet is for the body tag let's start with the head snippet click the copy icon of the top snippet to copy it go back to your shopify admin and on the sales channel click online store under themes click the actions drop down and select edit code on the left side look for theme dot liquid on the list and click it now what we're going to look is for the head tag which is just mostly located on top place your cursor after the head tag and press enter just put a space for google tag manager and paste the snippet they have just copied earlier go back to your google tag manager and click the copy icon of the bottom snippet then go back to your shopify now what we need to look is for the body tag in most cases it is just after the closing head tag so next to this closing head tag is the long opening body tag just right below it just press enter and put a space and paste the bottom code that you just copied then click save at this point your google tag manager is already installed in all of your pages now what we need to do is to set up your google analytics on where the google tag manager sends its data that's collected on your website click preferences and scroll down to the google analytics section as of now it's empty and we need to have a universal google analytics 4 number that will link to your account go to analytics.gov as you can see we don't have any data that's streaming yet since there's no account linked to this google analytics yet let's create a new account and a new property click admin at the bottom left side of your google analytics dashboard on the next page click create account on your account setup enter the account name on the account data sharing settings make sure that you put a check on the google products and services and all the other items in there then click next is the property setup enter your property name and indicate the time zone and the currency that you'll be using click the show advanced option to expand it and make sure that you enable the switch for creating a universal analytics property enter your website url without the https because it's already indicated and make sure that you have selected the create both a google analytics 4 and a universal analytics property make sure that you also enable the enable measurement for google analytics for property then click next the last one is about your business just indicate your industry and the business size also check your intentions in using google analytics just check all that applies to your business and click the create button at the bottom agree to all of the google analytics terms of service agreement you now have the google analytics account what we need to do next is to install the global site tag to your shopify website under tagging instructions expand the global site tag and it should show you the code that you need to install copy it by just clicking the copy icon on the right then go back to your shopify admin and edit the code on your shopify theme again make sure that you're on the shopify theme.liquid file look for the opening head tag and just right below it press enter to put a space then paste the global site tag and click save now let's close the web stream details and just go to google analytics main dashboard so as you can see there's no data since we haven't accessed the shopify website now let's close our website window and access the website again let's try to add something to our cart you can now go back to your google analytics and you should see the data streaming on the right side you should see the user that's accessing the website it should show one users in the last 30 minutes and you could also see the country and where that user is from since we just accessed it and added something to cart it should continue to stream until you uninstall the code or close your website now let's install the google tag manager on the preferences to make sure it's going to be sending data to your google analytics account go back to shopify and click online store then go to preferences go to the google analytics section now let's look for the ua number or the universal analytics id number go back to your google analytics and click admin at the bottom left under the property column click data streams and select your website on the list and we're back to the web streaming details scroll down to the additional settings and click the connected site tags copy the universal analytics id and paste it on the google analytics field on your shopify online store preferences then save your changes what we need to do next is to add the google tag manager on the custom java script just click the add custom java script to enable the field go back to your google tag manager and access the tag by clicking the gtm id on top copy the code and paste it on the javascript field of google analytics then save your changes the next thing that we need to do is to publish the container so google tag manager will start sending data to your google analytics go back to your google tag manager and close the snippet window as you can see that nothing yet is published on the green section of the main dashboard click the submit button located at the top right of the page indicate this version name and just click publish you should see that it is now live version on the green section this means that it's already sending data now the last thing that we'll be doing is just to verify that the google tag manager is really installed and is sending data to the correct google analytics account as what i said on the first part of this tutorial we will be using a google chrome extension so please open a new tab and search for google tag manager extension the first link should be the tag assistant legacy by google this one made by google for this integration so just add this extension to your google chrome browser make sure that you pin the extension to your top panel go back to your shopify website and click the tag assistant legacy by google in the pinned extension and enable it so after it's enabled it will start analyzing the pages of the current tab just refresh the page and it should give you the results as you can see the first and the second item is on the global site tag and it contained the measurement id and the universal analytics id this is what we installed in the shopify theme dot liquid we also have the universal analytics on our third item this is what we did on the preferences section of your online store it also detected the google tag manager and it has the same id with what we have this meant that we successfully installed our google tag manager and we have set up our google analytics for correctly on our shopify website your visitor comes in your google analytics will keep populating with data of your consumer's activity so that is how you set up google tag manager and google analytics 4 on your shopify website till the next tutorial do you like this content if you do don't forget to like this video click the subscribe button and ring that notification bell so you will get notified in our next [Music] video [Music] you
Info
Channel: BlueTuskr
Views: 1,984
Rating: undefined out of 5
Keywords: bluetuskr, bluetuskr ecommerce, ecommerce, ecomm, marketing agency, digital marketing, digital marketing agency, digital agency, ecommerce marketing, marketing interruption, podcast, daily podcast, marketing podcast, ecommerce podcast, google analytics v4, google analytics integration, google analytics upgrade, shopify analytics, google analytics tutorial, global site tag, shopify tutorial, google tag manager, GTM, GA4, Universal Analytics, Google Tag Manager to Shopify
Id: _-0gZiN6N7k
Channel Id: undefined
Length: 17min 12sec (1032 seconds)
Published: Tue Apr 27 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.