Google Analytics

Last updated last year

Use the Google Analytics integration to track page views.

You can use Google Analytics to track your project's traffic. Enabling it involves getting the tracking ID from Google Analytics and then adding it to your project.

Create a Google Analytics Property

  1. Sign in to your Google Analytics account.

  2. If this is the first website associated with this Google Analytics account, click Sign Up.

    If you have other websites associated with this Google Analytics account, click Admin, and in the Account column, click the existing account name and select Create new account.

  3. Use your project information to fill out the account options. For example, if you're creating an account for your company, Acme, you'd enter the following:

    • Account Name: Acme

    • Website Name: Acme GitBook

    • Website URL: <GitBook Project URL>

      Set the remaining options according to your preferences.

  4. Click Get Tracking ID and accept the Terms and Conditions.

  5. Copy and add the tracking ID to your project as described below.

Adding the tracking ID to your Project

Once you created a Google Analytics property for your project, you need to update your settings with the tracking ID you generated in the previous section.

  1. Go to your GitBook's project Settings.

  2. Under Integrations, click Enable Google Analytics and enter your tracking ID.

  3. Click Enable.

You can find the Google Analytics integration in Settings/Integrations.

You're all set and will start receiving traffic insights through your Google Analytics account shortly.