GA4 Configuration tag by default will send page_view events + the auto-collected ones you have enabled in your GA4 interface.
In order to receive ecommerce events you need to setup ecommerce event reporting, and yes you need GA4 - Event tag for that, properly configured to read the data layer or send event payload explictly.
Hi, yes of course, you need to configure each event separately based on your data layer and also fill these events with the parameters you need.
There are a lot of detailed manuals and videos on the internet about how to configure GA4, here is an example of one of them: How to Set Up GA4 E-commerce Tracking (Complete Guide) - YouTube
Thank you.
I thought that the configuration will transfer all events so I removed it.
Now the tag is set again and I to use regex on the trigger like so:
add_payment_info|add_shipping_info|add_to_cart|add_to_wishlist|begin_checkout|purchase|refund|remove_from_cart|view_cart|view_item|view_item_list
The events are seen in the web preview and in the server tag preview in a short delay.
The qustion is why I still cant find these events in the stape.io log ?
a) some of your events are not actually routed through server container but are sent directly to analytics property, the most common reason for this is that event fires before the configuration tag and as such transport_url is not provided
b) GA4 is batching some of your requests, meaning multiple events are sent in one hit, when this happens hits are sent using POST method (actually there are other cases when this happens too) rather then GET. Due to nature of proprietary GA4 Client we are not currently parsing POST request body (which in this case would contain all the info including event name) so such logs are recorded as ‘Unknown’
If you’re looking for better precision in your logs (although events land in GA4 as you say) I suggest you configure this tag Tag Manager Template Gallery they way you want it. Logs recorded by this tag will be shows in Other Logs tab of your container interface on Stape.
I proxyed my urls so instead of using googletagmanaer.com I am now using my sub.mydomain.com.
Did it as this is recommended by google and only that is considered as first party action and I don’t see errors on the console. Is that ok/allowed?
Is it ok with stape.io to use {{event}} and then use regex on the trigger to fire when one of the listed: view_item_list|view_item|view_cart … etc’… ?
Or should I declare a tag for each event?
That is more then OK and it’s something you should do!
Technically - no issues there. And there are no differences in stape / gcp in this particular context.
in principle, if your DL events match actual GA4 event names then you’re good. Myself I prefer to have explicit tags for better transparency and maintainability, but that’s more of a personal preference