Set up Google Analytics and Google Tag Manager

Yapla allows you to track your website traffic by connecting it to your Google Analytics and Google Tag Manager accounts. These tools let you analyze visitor behavior, measure your page performance, and make informed decisions to improve your site. You will learn how to integrate a tracking code and create a simple tag to begin collecting data.

In this article:

Set up Google Analytics

The procedure depends on the version of Google Analytics you are using.

New method (code starting with G- or a numeric-only ID)

In your Google Analytics Admin panel, go to the Data Streams section. Select your site or click on Add Stream if it doesn’t appear.

1.png

Then, retrieve the Measurement ID:

2.png

This code can be integrated into Google Tag Manager.

Old method (code starting with UA-)

In the Admin section of your Analytics account, open the Tracking Info menu, then click Tracking Code. Copy the displayed Tracking ID (e.g. UA-XXXXX).

3.png

Then integrate this code into the Google Analytics section of your site’s Tools sub-menu.

4.png

Set up Google Tag Manager

Google Tag Manager allows for detailed tracking of visitor behavior on your site. It is also compatible with Google Analytics 4. You’ll also learn how to create a simple tag to connect both tools.

Create an account

If you don’t have an account yet, go to Google Tag Manager and click Create Account.

tag-manager-create-account.png

Fill in the account name, your country, your site URL, and select Web as the platform. Click Create and accept the terms.

You’ll get a GTM-XXXXXX code to add in the Tools section of your Yapla site. This code must be in place for testing but will only become active after publication.

tag-manager-container.png

Add Google Analytics 4

In Tag Manager, open the Tags menu and click New.

tag-manager-tags.png

Choose the GA4 Configuration tag type and enter your measurement ID (G-XXXXXX). In the Triggering section, select All Pages.

tag-manager-tag-ga4.png

When saving, name the tag or keep the default name.

Then open the Triggers menu, click New and choose Page View as the trigger.

tag-manager-triggers.png

trigger-page-views.png

Test the configuration

Click Preview, enter your site URL and click Start. A new window will open with a debugging tool. Verify that the connection works properly.

Activate tracking

If the test is successful, click Submit to publish the tag. Important: No data will be collected until the tag is published.

Was this article useful?

Comments

0 comments

Please sign in to leave a comment.