How do i start with analytics?
The basis of measurement is (usually) measuring the visitors on individual pages.
This article assumes Google Tag Manager (GTM) + Google Analytics (GA).
In principle it is also possible to only use a GA script. Since this is no longer recommended by Google, we won't discuss it further here.
However, the place in which the script should run (in i-Reserve) is the same place. And with GA alone, no further steps in GTM are required. So this article could also be adjusted with a little bit of empathy.
What is needed for a GTM measurement?
First of all, there must be a GTM container. Creating this is outside the scope of this article. The code that applies for this usually looks like this GTM-XXXXXX.
Then we first create the script.
This requires a content block. Configuration > Customer page > Content Pages > Content block.
Create a new block with a logical name. For example "demo-gtm-head".
We now create a script, including the script tags.
<script nonce="{SERVER-GENERATED-NONCE}">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push ({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]');
n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXXX');</script>
Replace the XXXXXXXX with the code of the container.
It is also noticeable that a specific code is used. "{SERVER-GENERATED-NONCE}".
This is a variable that is generated uniquely by the system per page. A so-called NONCE.
Make sure that the script is also built in for the other languages (if there are multiple languages).
Now that we have the script, it still needs to be called.
To do this, go to Configuration > Customer page > General.
The setting is called "Extra javascript content block". Select the content block you just created from the drop down.
From now on the script will be loaded.
This can be checked by loading a customer page, for example the homepage. And then check if the GTM script is loaded. This is a fairly technical check. The URL called is usually https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXX.
We are not there yet. Because we want pages to be measured.
In short this is necessary.
- A GA account.
- Within the GA account -> Admin > Data collection > Data streams.
- Write down the G-XYZ code. Also called the Measurement ID.
- Now to GTM
- Create a Tag, for example PageView
- Choose GA
- Choose Google Tag
- The "Tag ID" must be filled with the Measurement ID
- Choose a trigger: "Initialization - All Pages".
- Save and publish.





