Skip to main content

GTM-GA4

How to access on Fynd Platform

Introduction#

Google Tag Manager (GTM) helps you to add a snippet of information to your website. It is generally used by digital marketers and analysts for monitoring user behaviour, without having to edit the actual code.

Video Playlist: Set up GTM in Fynd Platform

note

If you want to know how to use Univeral Analytics (UA) instead of GA4, click here


Creating a Google Analytics (GA4) 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 used for when you see it in the list of accounts.

    QG4

    Figure 4

Enter a property name. It's recommended to use the name of your website or app, so you can easily identify what this property is used for.

QG4

Figure 5

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

    QG4

    Figure 6

  1. Read and accept the terms of service.

    QG4

    Figure 7

  1. Now that you have successfully created your Google Analytics account, you can set up a data stream (a source of data, e.g., your existing website or mobile app).

    QG4

    Figure 8

  1. Enter the URL of your website, a stream name, and click on Create Stream.

    QG4

    Figure 9

  1. Note down the Measurement ID of your webstream as shown below.

    QG4

    Figure 10

  1. Copy this Measurement ID. Later, this ID will be used while creating a GTM tag.

    QG4

    Figure 11


Creating a GTM Account#

  1. Click your property name on the top-left corner as shown in fig. 12

    QG4

    Figure 12

  1. Go to Tag Manager (2nd icon) and click on Get started.

    QG4

    Figure 13

  1. You will be redirected to tagmanager.google.com. Click on Create Account.

    QG4

    Figure 14

  1. Add a descriptive name to your new GTM account and select your country.

    QG4

    Figure 15

  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 16

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

    QG4

    Figure 17

  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 Fynd Platform.

    QG4

    Figure 18


Integrating GTM with Fynd Platform#

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

    QG4

    Figure 19

  1. Click on GTM.

    QG4

    Figure 20

  1. In the API Key, paste the container ID. Use the toggle button to enable this integration, and click Save.

    QG4

    Figure 21

note

It may take up to 2 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 22

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

    QG4

    Figure 23


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 24

  1. Enter a tag name and click the edit icon to view the available tag types.

    QG4

    Figure 25

  1. Choose Google Analytics: GA4 Configuration.

    QG4

    Figure 26

  1. Enter the Measurement ID of your data stream (copied earlier).

    QG4

    Figure 27

You have seen the process of obtaining a Measurement ID in the section: Creating a Google Analytics (GA4) Account

QG4

Figure 28

  1. Now, let's choose a trigger which will fire your new tag.

    QG4

    Figure 29

  1. Page View is the most common trigger, you can either choose it or click the + icon on the top-right to view more triggers.

    QG4

    Figure 30

  1. Page View trigger is added successfully. You can add more triggers if required.

    QG4

    Figure 31

If you are adding a trigger, give it an appropriate name and choose the trigger type.

QG4

Figure 32

Choose any trigger from the list. In this example, we will be using only the Page View trigger though.

QG4

Figure 33

8. Click **Save**.

QG4

Figure 34

  1. Click Submit.

    QG4

    Figure 35

  1. Add a version name and description. Click Publish.

    QG4

    Figure 36

tip

Versioning helps to maintain records of your tags, which will help you to revert to this version in the future.


Using Google Analytics to view GTM output#

  1. In the left-panel of your Google Analytics account, click on Realtime. Here, you can view the real-time data of users on your website. There's a graphical, numerical, and geographical representation of desktop and mobile users.

    QG4

    Figure 37

  1. Since there were zero/no users, let's go to the data stream (your website).

    QG4

    Figure 38

  1. Your GTM tag was fired by the Page View trigger after visiting the website. Google Analytics detects a desktop user, and it also points to the geographical location of the user.

    QG4

    Figure 39

  1. If you visit the website from your mobile browser, Google Analytics will show the corresponding result.

    QG4

    Figure 40

  1. Scroll down the page to view the type of events detected through your GTM tag.

    QG4

    Figure 41

You can continue experimenting with Google Analytics along with GTM tags and other triggers to obtain in-depth user behaviour on your website.