Hi Dan,
for GA4 I have set all the events as you advised me, also in the WEB container I have paused the GA4 tags so as not to track duplicate events, maybe later I will enable them by sending the events to another GA4 property to see the differences with Data Tag and Data Client. If it may be useful to someone, I would like to point out that you have to pay attention to the name of the event that is set in the WEB and SERVER triggers, they must be set up as follows:
- WEB - Data Tag - Event name: view_item
- WEB - Data Tag Trigger - Event name: view_product
- SERVER - Trigger - Event name: view_item
and not:
- WEB - Data Tag - Event name: view_item
- WEB - Data Tag Trigger - Event name: view_product
- SERVER - Trigger - Event name: view_product
that is, in the tags on the SERVER container, the triggers must be set so that the name of the event coincides with the name of the event sent by the Data Tag and not with the event name of the Data Tag trigger.
Also for all events I have enabled:
because as per documentation:
https://support.google.com/analytics/answer/9234069
GA4 with its WEB tags sends the following parameters with every event, including custom events:
- language
- page_location
- page_referrer
- page_title
- screen_resolution
is this reasoning correct?
However, I have a doubt regarding the page_view event for GA4 as in my WEB container it was sent via a GA4 Settings tag. Therefore I have configured a Data Tag and a Data Client as follows:
Note that I have enabled in the Data Tag page_view:
- Send all from Datalayer
- Send common data
Is it correct to also enable “Send all from Datalayer” for this tag or is it not necessary?
Once all this has been done, GA4 traces the events in the reports and in the event count in the real-time view, but the number of users in the last thirty minutes is always 0 and also the user snapshot function in the same view does not report anything.
Furthermore, if I keep the SERVER container preview mode active, the events are immediately sent and displayed in the real-time view on GA4 while with the preview mode closed the events are displayed after about 10 minutes and I’m not even sure if they are all sent, even if according to the documentation, real-time events should take 1 minute to process:
https://support.google.com/analytics/answer/11198161?hl=en
is this delay normal?