Where do I put my Google Analytics tracking ID?
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
The Google Analytics integration for GitBook allows you to track traffic in your published sites from your Google Analytics dashboard, giving you a fuller picture of how your customers interact across your sites and apps throughout their lifecycle.
You can input the tracking ID in two ways:
from the sidebar
from site settings
Navigate to the Integrations tab in the sidebar.
Access the Google Analytics integration from the list of installed integrations and click on the tab Configuration.
Next, click Pick a site and choose where the integration should run.
Click on the options menu next to the site name and select Configure in site.
Add your UA-XXXXXXXXX-Y
Google Analytics tracking ID in the tracking ID field.
Once complete, your GitBook site should send data to your Google Analytics account. You can verify this by checking your Google Analytics dashboard for incoming data.
Please remember that the data might take some time (up to 48 hours) to appear in your Google Analytics dashboard.
In GitBook, navigate to the selected site where the tracking ID should be added.
In the site, navigate to the integrations option in the top right-hand corner.
In the list of available integrations, select Google Analytics and click on the settings icon next to it.
Once in the configuration window, add the tracking ID (UA-XXXXXXXXX-Y)
in the "tracking ID" field.
Once complete, your GitBook site should send data to your Google Analytics account. You can verify this by checking your Google Analytics dashboard for incoming data.
Please remember that the data might take some time (up to 48 hours) to appear in your Google Analytics dashboard.