Hi,
You should always use the web container and optionally enter the custom domain of your sGTM instance under the Advanced tab.
Thread Starter
reghta
(@reghta)
Thank you Thomas.
How about the e-commerce setup, can we do this on the Server Container to have the page speed benefit or do we still need to do this on the Web Container?
https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version
In parallel a mini-bug report:
For the custom domain if I enter the website address with https:// and save then the plugin says saved but actually does not save. Once I saved it without the https:// then it saved without an issue.
Hi,
Usually sGTM is configured to route incoming request to Google Analytics by changing the “Transport URL” in the GA4 config tag or in the UA settings variable.
With that, you will need to setup ecommerce tracking in your web container just as without sGTM.
Thanks for the bug report, it has been already corrected in the new beta:
https://github.com/duracelltomi/gtm4wp/commit/fce28ff6738a07d5bcd0b7d7c434d0ec2f3570a1
Thread Starter
reghta
(@reghta)
Thanks Thomas! We specified Send to server container in the config tag.
I imagined we could send everything to Server side and apply the logic there to reduce the client load but it seems when we only have the config tag the server side collects only the Page View and User Engagement.
Given our goal is sending the ecommerce data to GA4 + GAds + Facebook CAPI is the following the right setup for the least load on the website users?
1- Set up the UA4 e-commerce events in the Web container per your article
2- Set up GA4 (or is this not needed given web container will already have the UA4 tags?) + Facebook Conversion API + Google Ads tags in the Server container
-
This reply was modified 4 years, 1 month ago by
reghta.
At least one data stream has to be created between the browser and the server. Then for example with the Facebook Conversion API tag template you can use the incoming GA4 data to populate Facebook data without the need to send this separately from the browser.
So some level of “load” can be saved with this.
Thread Starter
reghta
(@reghta)
Thanks Thomas.
I think I got it mostly up and running. I imported the template as you suggested; Web container here and Server container here
Can I confirm the GAds purchase conversion setup the you elaborate here should be done in the Server Container? It seems some images in the article might be lost and so I am not sure how to add the specified fields in the Server Container GAds Purchase tag here?? e.g. should it be Include Tag Name, Metadata, if Metadata then what should be the key if {{Ecommerce Value}} is the value?
Cheers,
Reha