Skip to main content

GTM-Universal

Creating a Google Analytics (UA) Account

  1. Go to Google Analytics

QG4

Figure 1

  1. Sign in with your Google account.

QG4

Figure 2

  1. Click on Start Measuring.

QG4

Figure 3

  1. Enter an account name. Use a descriptive name, so you can easily tell what this account is for when you see it in the list of accounts.

QG4

Figure 4

Enter the property name and click on Show advanced options. Use the name of your website or app, so you can easily identify what this property is used for.

QG4

Figure 5

  1. Enable the toggle button to create a Universal Analytics property and enter your website URL for which this property will be used.

QG4

Figure 6

tip

Click on Create a Universal Analytics property only because the other option (GA4) is still in the beta stage.

  1. Fill in all other business details and click on Create.

QG4

Figure 7

  1. Read and accept the terms of service.

QG4

Figure 8

  1. You have successfully created your Google Analytics account. Note down your property's tracking ID as shown below. This tracking ID will be used while creating a GTM tag.

QG4

Figure 9


Creating a GTM Account

  1. Click on All Web Site Data as shown in fig. 9. Go to Tag Manager (2nd icon) and click on Get started.

QG4

Figure 10

  1. Click on Create Account.

QG4

Figure 11

  1. Enter a descriptive account name and select your country.

QG4

Figure 12

  1. Enter a container name and target platform. In this example, we will analyze user behaviour on desktop and mobile web. Therefore, let's select Web as the target platform.

QG4

Figure 13

  1. Read the Terms of Service and click Yes (if you agree to those terms).

QG4

Figure 14

  1. You have successfully created your GTM account. Note down your Container ID as shown below. This container ID will be used to integrate GTM with the Fynd Platform.

QG4

Figure 15


Integrating GTM with Fynd Platform

  1. On Fynd Platform, go to the Settings screen of your sales channel and click on Integration.

QG4

Figure 16

  1. Click on GTM.

QG4

Figure 17

  1. In the API Key, paste the container ID (copied from step 1). Enable this integration using the toggle button and click Save.

QG4

Figure 18

note

It may take up to 5 minutes for your GTM code (container ID) to reflect in your page source.

  1. Go to your website, then right-click and select View Page Source.

QG4

Figure 19

  1. Use Ctrl+F and type gtm. If you can view the container ID in your page source, your GTM integration is successful.

QG4

Figure 20


Creating a GTM tag

Once the GTM code is integrated with Fynd Platform, you can start creating GTM tags.

  1. From the left-panel, go to Tags and click New.

QG4

Figure 21

  1. Enter a descriptive tag name. We have used Count View-All Tag to indicate that this tag will be used to count the number of times, users have clicked the View All link on the website.

QG4

Figure 22

  1. Choose Google Analytics: Universal Analytics.

QG4

Figure 23

  1. Enter Event as your Track Type. Choose pre-defined options or write your own Category, Action and Label.

QG4

Figure 24

info

The event category and event label entered by you will be shown as-it-is on Google Analytics page.

  1. From the Google Analytics Settings drop-down, select New variable...

QG4

Figure 25

  1. Enter the Tracking ID of your Google Analytics account.

QG4

Figure 26

You have seen in Creating a Google Analytics Account section, how to obtain the Tracking ID (refer to the image below).

QG4

Figure 27

QG4

Figure 28

  1. Once you have created a tag, it's time to create a trigger. A trigger is nothing but an event which will fire the GTM tag (in this example, we will count the number of times users click the VIEW ALL link). The event can be any activity that a user performs on the website.

QG4

Figure 29

  1. Choose a trigger type. In this example, let's choose Click-All Elements Trigger.

QG4

Figure 30

  1. Select Some Clicks because you don't want to trigger (fire) your tag on every click made by the user.

QG4

Figure 31

  1. Select Choose Built-In Variable from the drop-down.

QG4

Figure 32

  1. Let's choose Click Text.

QG4

Figure 33

  1. In this example, the website contains a VIEW ALL link on its home page. Let's enter VIEW ALL in the field so that whenever a user clicks on that link, the tag gets triggered.

QG4

Figure 34

  1. Enter the trigger name and save it.

QG4

Figure 35

  1. Click on Submit near the top of the window.

QG4

Figure 36

  1. Write a version name and description of this trigger. Click on Publish.

QG4

Figure 37

note

Each time you publish your tag, you'll have to enter the version name and description.


Previewing your GTM tag

  1. GTM allows you to test your tag. Click on Preview near the top of the window.

QG4

Figure 38

  1. Enter the URL of your website that is tagged with GTM.

QG4

Figure 39

  1. Wait for the Tag Assistant to connect to your website.

QG4

Figure 40

  1. Your website will be open in a new tab along with a debugger.

QG4

Figure 41

  1. In the previous tab (Tag Assistant), you can cross-check whether the debugger (preview) mode is successfully connected.

QG4

Figure 42

  1. Since we have created a VIEW ALL trigger, let's click the VIEW ALL link on the website's homepage.

QG4

Figure 43

  1. In the previous tab, under Tags Fired section, you can see that the Count View-All Tag is triggered.

QG4

Figure 44

  1. Your tag is functioning successfully. Now you may stop the debugger.

QG4

Figure 45


Using Google Analytics to view GTM output

  1. In the left-panel of your Google Analytics page, go to Realtime --> Events. Here, you can view the real-time data of users on your website, which includes the number of times, the VIEW ALL link was clicked on the website.

QG4

Figure 46

note

The Event Category and Event Action were entered in step 4 while creating a GTM tag

  1. You can also view the graphical and numerical representation of mobile and web users. The Events graph shows the number of times your GTM tag got triggered.

QG4

Figure 47


Was this section helpful?