1. Help Center
  2. Marketing
  3. Tracking & Social Media

How to setup Google Tag Manager, Google Analytics 4 🤔

What is Google Tag Manager?

Google Tag Manager is a tool that helps you easily manage and update tracking codes—called "tags"—on your website or app without needing to change the code each time. Once you add a small piece of Google Tag Manager code to your site, you can control things like Google Analytics, ads, and other tracking tools from a simple web interface for better analytics and marketing.

It's a powerful tool. It is strongly advised that this tool would be used by advanced users, since you can add things like TikTok, Google Ads, and Snapchat tracking to run ads and collect data. Check this list for supported integrations.

 

To connect or set Google Tag Manager, follow the steps below:

Integration Steps:

2- Login or create a new Google account

3- Click on Create Account


 

4- Provide your company name, location, and choose if you wish to share anonymous data or not

5- Provide a container name and choose Web


 

6- The Terms and Conditions page will pop-up. Click on Yes to proceed

7- The following page will appear. All you need is to copy the shown Tracking ID

003_Gif_Google_Tag_Manager_Integrations

8- Go to your Zyda dashboard >> Marketing >> Tracking & Social Media then paste the mentioned Tracking ID in the box under Google Tag Manager >> after clicking Connect. It will automatically check the ID and provide you with a confirmation message


 


Congratulations, you’ve set up Google Tag Manager with Zyda. To begin using Google Analytics, Google ads, etc. Continue below…

9- Download the template below:

 

10 - Go back to your GTM Workspace on https://tagmanager.google.com/

Once you're logged in, click on Admin

11- Click on Import Container

12- Once you've downloaded the file, proceed to import it into GTM >> Click on Existing 

 

13- If you're asked to select a workspace, click on the Default Workspace

14- Click on Confirm at the bottom of the page


 

15- Return to your GTM and workspace, and you should see that imported Tags, Triggers, and Variables have been added.

 

16- To add your Google Analytics 4 measurement ID, go to variables and open "GA4 Measurement ID" and replace "ADD_YOUR_GOOGLE_ANALYTICS_4_CODE_HERE" with your measurement ID from Google Analytics. Make sure you are using a G-XXXXXXX property, and not a Universal Analytics UA-XXXXX property.

Admin >> Data Streams >> Copy the code [Measurement ID] >> Go to Variables and past the code under GA4 Measurement ID

19-may-2022_adding_GTM_templates_v1-ezgif.com-video-to-gif-converter (1)

18- Once you’ve added your pixels and Google Analytics codes, click Submit

19- Click Publish

20- Click on Skip


And you're (FINALLY) done!

Now you should begin to see data flowing into your Google Analytics 4 account within 48 hours. However you can take a look at the "Realtime" tab in Google Analytics for real-time data.

Best Practice:

To avoid duplicate events, make sure to disable enhanced measurement on your GA4 stream settings.

Feom Google Analytics 4: Property Settings Sign > Data Streams > Click on the stream >> Turn off enhanced measurement 

You've now set up GA4 using Google Tag Manager. You can explore the hundreds of other integrations available on Google Tag Manager tag integrations or in the community gallery.


Notes:

  • Google Tag Manager is intended for advanced users only


To watch a video on how to set up Google Tag Manager, Google Analytics 4 🤔