# Configuring Google Analytics

Source: https://docs.arcxp.com/en/products/arc-xp-administration/global-settings/configuring-google-analytics.html

Use the Google Analytics page in Global Settings to configure Google Analytics on your websites.

> **Note:**
> 
> To use Google Analytics (GA4) for PageBuilder Editor’s integrated contextual analytics, you must create a service account associated with your Google Analytics account and provide that information when configuring your Google Analytics integration within PageBuilder Editor.
> 
> For more details, see [Set up Analytics for a website and/or app](https://support.google.com/analytics/answer/9304153?hl=en) in the Google Analytics Help page.

Integrating Google Analytics content analytics provides real-time insights into audience engagement directly from Arc XP’s PageBuilder Editor, where you manage pages. See [Using the ![icon_analyze.png](https://docs.arcxp.com/images/learning-center/image/img-603ef6419fde9be803832d435c02bd3f.png) Analyze workspace](https://docs.arcxp.com/en/products/pagebuilder/pagebuilder-editor/managing-pages/curating-in-pagebuilder-editor.html#UUID-c2e1b940-ff57-2210-5304-54cb6cb5a77c%5FUUID-729538be-5f6d-70b4-f480-82099cea54e8).

## Prerequisites

- You must have a Google Analytics account and an integrated Google Service Account. See [Set up Analytics for a website and/or app](https://support.google.com/analytics/answer/9304153?hl=en) in the Google Analytics Help page.
- Add the Google Analytics code snippet to your website to capture analytics.
- You must have the following permissions, depending on what actions you take:

  - **Add analytics settings** \- allows you to configure Google Analytics for your websites.
  - **Delete analytics settings** \- allows you to remove a Google Analytics configuration.

## Scenario: Optimizing content for mobile readers through Google Analytics insights

A digital publisher launches a new investigative series but notices through Google Analytics that most readers only scroll 25% of the way through articles, with the majority accessing content on mobile devices.

Armed with this data, they restructure content to prioritize key information at the top and optimize the mobile experience for faster loading and better readability. After monitoring the changes, they see improvements in scroll depth and session duration, using these insights to refine their strategy to boost reader engagement.

## Procedures

## Setting up Google Analytics on your websites

To configure Google Analytics for your websites, follow these steps:

1. Navigate to **Global Settings**.
2. Click **Analytics > Google Analytics**. The Google Analytics page opens displaying a list of all the websites in your organization.
3. Complete the following fields for the websites you want to configure Google Analytics for:

  - **Google Service Account** \- enter your Google Service Account name.
  - **JSON key** \- upload a JSON key that you generated from your Google Service Account.
  - **Property ID** \- enter the Property ID from your Google Analytics account.
4. Click **Save settings**.

## Removing Google Analytics from your websites

To remove a Google Analytics integration you no longer need, follow these steps:

1. Navigate to **Global Settings**.
2. Click **Analytics > Google Analytics**. The Google Analytics page opens displaying a list of all the websites in your organization.
3. Click ![icon_delete.png](https://docs.arcxp.com/images/learning-center/image/img-8ca2d9d0fbd08bb87abc75121320808b.png) on the row for the Google Analytics configuration you want to remove.
