Track documentation analytics with Google Analytics
Learn how to install and configure the Google Analytics integration so you can track detailed analytics from your docs site
Last updated
Learn how to install and configure the Google Analytics integration so you can track detailed analytics from your docs site
Last updated
The Google Analytics integration for GitBook is available for all plans and provides an easy way to monitor your site's metrics in even more detail than you get from .
To locate your measurement ID:
Open Google Analytics.
Navigate to the Admin section.
Under the Data collection and modification section, click Data streams.
Select the Web tab.
Click on your web data stream.
Find the measurement ID in the first row of the stream details. Copy it to your clipboard.
A valid measurement ID starts with ‘G-’ followed by a combination of numbers and letters (e.g., ‘G-IT8OOK2K25’)
Next up you need to install the Google Analytics integration directly from the GitBook Integrations page. To do this:
Find the Google Analytics integration in the Integrations page, accessible from the GitBook sidebar (or the link above).
Install the integration for your organization.
You can configure the integration for every site, but for now just choose Install on specific site and select the site you want from the drop-down.
To finish the configuration, paste in your measurement ID and click Done.
If no data has appeared in your Google Analytics dashboard after 48 hours:
Return to Google Analytics.
Click the Admin cog.
Navigate to Data Streams settings.
Select your data stream.
Check the top of the page for data reception status.
Double-check that the measurement ID is correct in GitBook.
Ensure your site is published in GitBook and receiving traffic.