How to set up web analytics tracking
This feature allows for integration with many web analytics tools since they work by loading a JS snippet.
If you decide to use Google Analytics, here is what you need to do.
Google Analytics 4 is the next-generation measurement solution, replacing Universal Analytics. On July 1, 2023, standard Universal Analytics properties stopped processing new hits. If you still rely on Universal Analytics, we recommend you use Google Analytics 4 going forward.
To add the Google Analytics tracking code to your documentation portal, youβll need a piece of code known as the βGlobal Site Tag.β
You can find this in your Google Analytics admin dashboard. Locate the tracking code under Admin -> Data Streams -> Web stream details.
Copy the global site tag below into the Custom JavaScript field under Space Settings -> Custom Code.
Make sure you replace the insert measurement ID with your own ID.
After the code is added, clickΒ SaveΒ and publish to production.
For security reasons, custom code is only included on a custom domain.
ο»Ώ
ο»Ώ