Skip to main content

Google Analytics

Note

Google Analytics ceased support of Universal Analytics (also known as Google Analytics 3) on July 1, 2023. Google Analytics 4 replaces Universal Analytics. Brightspot customers who currently leverage the Google Analytics integration must reconfigure the integration to be supported by Google Analytics 4.

Overview of the configuration process

To configure the Google Analytics 4 integration, you take the following steps:

  1. Set up Google Analytics. For details, see [GA4] Set up Analytics for a website and/or app.
  2. Connect the integration to Brightspot. For details, see Adding the Google Analytics 4 integration.
  3. Configure the integration itself so you can view Google Analytics data in Brightspot at the site or page level. For details, see Configuring a site to retrieve Google Analytics 4 data.
  4. Retrieve any custom events that should display at the site or page level. For details, see Retrieving Google Analytics 4 custom event data in Brightspot.
  5. (Optional) Configure analytics data such that you can use it as sorting criteria in Brightspot search. For details, see Adding Google Analytics 4 data to the search panel.

How Brightspot displays Google Analytics data

Brightspot displays Google Analytics data in two ways:

Including Google Analytics in a Brightspot build

The following table lists the dependencies to include in your build configuration.

ArtifactDescription
com.psddev:google-analytics-4Exposes core Google Analytics 4 functionality for configuration.
com.brightspot.go:lib-model-google-analytics4-scriptNecessary for inputting the measurement ID that gets injected into the markup of your pages to invoke Google Analytics 4.
com.brightspot.golib-model-google-analytics4-uiExposes elements necessary for the integration to appear in Sites & Settings and in Analytics widgets.