Skip to main content
All CollectionsStatistics
How can I connect Poool to Google Analytics through GTM?
How can I connect Poool to Google Analytics through GTM?

Learn how to track your walls' performance directly in your own Google Analytics account

Flore Bayle avatar
Written by Flore Bayle
Updated over a week ago

Connecting Poool data with Google Analytics will allow you to obtain precise results and align your strategy with your general KPIs.

If you are using GTM to send data to GA4, you can use the native poool x gtm connector that we provide.

This involves three main steps for you:

  • Integrate the connector in the Poool configuration

  • Configure GTM and GA4 to correctly send your data

  • Validate in GA4 that the Poool event is present

πŸ’‘ If you are integrating Poool via GTM, we recommend using the native Poool x GTM connector to send information to GA4.

We explain everything in this article! πŸ™‚

Integrate the poool x gtm connector

Start by updating the Poool configuration with the code that enables the connector.


​Legacy version

poool('config', 'gtm_auto_tracking_enabled', true);
poool('config', 'auto_tracking_spec_v2', true);

Access configuration

access.config('gtm_auto_tracking_enabled', true);
access.config('auto_tracking_spec_v2', true);

Audit configuration

audit.config('gtm_auto_tracking_enabled', true);
audit.config('auto_tracking_spec_v2', true);

These two lines enable automatic GTM tracking for predefined events. Each piece of information related to an event will be pushed into the DataLayer, following the same structure as a Google Analytics event.

πŸ’‘ If you are using both the Access and Audit scripts, the connector configuration must be included in both scripts.

Configure the GTM workplace

Once you have added the correct lines to your code, you need to define a custom trigger in GTM associated with Poool. There are three essential steps to follow.

Step 1: Create your data layer variables

Click on "Variables" > "New"

In "Variable Configuration", select "Data Layer Variable"

Create the three variables below:

  • eventCategory

  • eventAction

  • eventLabel
    ​

Step 2: Define a new tag

Click on "Tags" > "New" > "Tag Configuration"

Choose the tag type "Google Analytics" > "Google Analytics: GA4 Event"

In the "Tag Configuration" section, enter:

  • Your GA4 Measurement ID (if needed, find more information on this in πŸ‘‰ this doc)

  • Event Name: poool

In the "Event Parameters" section, you need to define the 3 event parameters and assign them the values of the variables we defined in Step 1.

  • event_category => {{eventCategory}}

  • event_action => {{eventAction}}

  • event_label => {{eventLabel}}

Here's what it looks like in our example:

Step 3: create a custom trigger

Go to the "Triggering" section

Choose your trigger type as "Custom Event" and name it "poool"

This trigger should now be associated with your Google Analytics tag.

Now, let's head to GA4! πŸ™‚

Retrieve data in GA4

To find the data in GA4, you need to declare custom definitions corresponding to the information sent in the data layer.

In your GA4 dashboard, go to the "Admin" section and select "Custom Definitions."
​

Name your three dimensions: event_category, event_action, and event_label, and declare these same values in the "Event parameter" section under "Custom Definitions." Choose the scope as "Event."
​


​


​

How do I confirm that my configuration is correct?

To confirm that your setup is correct in GA4, you can follow these steps:

Access the "Realtime" section of GA4: In your GA4 dashboard, click on "Realtime" in the left-hand menu.

Check realtime events: Once in the "Realtime" section, click on "Events" to view currently occurring events.

Look for the 'poool' event: Ensure that you see the event named "poool" in the list of realtime events. This confirms that data is correctly being sent from GTM to GA4.
​

In the "Event count" section, you will find the event "poool" along with the information for event_category, event_action, and event_label.

Create an exploration

Once everything is set up, you can now track the performance of Poool walls in your GA4 account!

To analyze your statistics, go to the "Explore" section.

Choose "Create a new exploration," then load the information you want to see for your analysis, related to event_category (poool), event_action (triggered event), and event_label (journey details).

Here's an example view below πŸ‘‡
​

The data in the exploration will be available starting from the day after you have set up the Poool x GA4 connection and completed the configurations in your GA4 Dashboard.

Do you have any more questions? Feel free to contact us via chat or at support@poool.fr πŸ™‚


​

Did this answer your question?