Google Analytics with Google Tag Manager

Art. no. 216207849

No alt text available

Introduction

GTM is a container for "tags", and a common setup is to setup the GTM container with a Google Analytics 4 (GA4) tag. This will direct event data to a Google Analytics project. Visit https://support.google.com/tagmanager/answer/9442095 for more information.

Implementation details

GTM is simple and straight-forward to setup in the Prenly web reader.

In Android and iOS apps, the Firebase SDK (built by Google), is used to deliver event data to the GTM container. This needs to be activated within the app's program code, which implies that a a new app version must be compiled and released before events will be sent.

Also note that the Android and iOS Firebase SDK:s do not allow sending data to more than one GTM container, Therefore, it is not possible to setup more than one GTM integration for a single Prenly client.

Setup

Setting up GTM and Google Analytics

You need to setup this according to Google's instructions.

Configure the integration in PWS

The following configuration parameters are set up in Prenly Workspace.

GTM container ID

The site ID configured in the Matomo server, as an integer.

Example: "GTM-A1B2C3D"

Custom base URL

If using a custom server-side GTM, this is where statistical data will be sent.

Example: “https://my-servers-side-gtm.com/"

Data layer variable name

This will change the name of the JavaScript data layer object when using GTM in a web reader application. It is applicable if using more than one GTM container simulteneaously.

Example: "myDataLayer"

© Textalk

We use DeepL and ChatGPT for translations. Occasional imprecisions may occur.