Please ensure you have:
You have access to Wordpress
You have Google Analytics code e.g. UA-XXXXXXX
Get Google Analytics code
You need to have Google Analytics Account. If you don't have it, here is how to make one.
NOTE: For Marketing Website, in step 2, you don't need to create Universal Analytics Property.
Steps in WordPress
Please go to Theme Settings → General
Please paste the Tracking ID in Analytics field e.g. UA-XXXXXXX
Please bear in mind that in order to changes to be reflected we need to Export the page. Clicking Update on this screen will not trigger the change, we need to deploy the platfrom (rebuild it).
Start tracking before cookie acceptance
By default, the user tracking starts once the user accepts the cookie consent.
We have the possibility however to override it by:
Go to Theme settings → Cookies
Check “Start Tracking Before Accepted“
Please bear in mind that if you add both GA and GTM code, BOTH will trigger.
If you use GTM, it is better to add GA to GTM container and embed only the GTM code.