Easily manage your PWA tags with Google Tag Manager

This famous quote is often attributed to Peter Drucker considered as the founder of modern business management. If you are keen on data collection and analysis, our integration of Google Tag Manager into your Progressive Web App will open up endless possibilities. Via GTM, you can now use any web service to measure what's going on in your PWA, and thus make the right decisions to improve it.
What is Google Tag Manager?

The main interest of TMS is that you perform a technical intervention on your site only once. Once the TMS javascript is added, there is no need to worry about it. The rest of the configuration is done in the TMS management interface.
Google Tag Manager is a service offered by Google. From the GTM management interface, you add tags and define triggers.
Tags are the different javascript codes that you want to execute in the container on your site.
Triggers are rules that you define to trigger the display of tags.
GTM offers a large number of tags and triggers by default, which makes its configuration quite simple, despite an interface that may seem complex at first.
For example, if you use AdRoll to carry out re-targeting campaigns, simply add the AdRoll tag in GTM and associate the trigger which triggers a display on all the pages of your PWA, and voila!
How to use Google Tag Manager with my GoodBarber PWA ?

Once the container is created, retrieve its ID. It is of the form of GTM-XXXXXXX.
Then go to the back office of your PWA. Open the Statistics menu> External Tools> PWA Tab
In the Google Tag Manager block, click ON, enter the ID of your container and click on Save.
Then go to Publish> PWA> Update and update your app.
Note: Remember, regarding the update of the app, check first if the latest version which you have compiled supports the Google Tag Manager feature. If not, recompile your PWA.
If this is already the case, a simple update of the PWA settings is enough to apply your Google Tag Manager configuration.
Once you have entered the ID of your GTM container in your PWA (and updated it), all you have to do is go to the GTM management interface to configure your tags and triggers in your container.
Google's online help is very detailed and explains step by step how to do it.
Shopping App, special option AMP / GTM

To do this, simply create a container reserved for AMP in your Google Tag Manager account. Get the ID of this container and enter it in the back office of your Shopping App.
To do this, go to the Statistics menu> External Tools> PWA Tab. A GTM input field dedicated to AMP is provided.
Design

