XF 2.0 How to add google analytics

Muchacha

Member
How to add gtag.js to page <header> in Xenforo?
Or is there a better way?
You realised already I need an idiots guide. :D
 
AdminCP - Setup - Options - Search Engine Optimization (SEO)- Google Analytics web property ID

...just fill in your ID and it will most likely give you what you need automatically
 
It sets the last octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to zeros before it sends the info to Google Analytics. It basically allows your users to remain anonymous as far as IP addresses go in the analytics data that Google saves to disk.

It is also required for GDPR compliance.
 
It sets the last octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to zeros before it sends the info to Google Analytics. It basically allows your users to remain anonymous as far as IP addresses go in the analytics data that Google saves to disk.

It is also required for GDPR compliance.
How do we know if the configuration is successful after we've saved the property id?

There was some confusion on this "property id", apparently, it's also known as a tracking id and measurement id, just want to make sure it's working.
 
How do we know if the configuration is successful after we've saved the property id?

There was some confusion on this "property id", apparently, it's also known as a tracking id and measurement id, just want to make sure it's working.
Typically within 24 hours (at most 48 hours) you'll see statistics reporting on your Google Analytics account.
 
Back
Top Bottom