Google Analytics Integration

Last modified on March 27, 2024

Google Analytics is a web analytics service by Google that helps analyze website visitor traffic for marketing or other purposes. It has a free version and a paid subscription, Google Analytics 360 Suite.

AlertSite integration with Google Analytics lets you view your Google Analytics metrics overlaid with the website response time and availability measured by AlertSite. You can view the data overlay on the charts on the AlertSite Dashboard.

AlertSite UXM

Google Analytics metrics in AlertSite charts

Click the image to enlarge it.

AlertSite 1.0

Google Analytics data in AlertSite charts

Click the image to enlarge it.

Considerations

  • Google Analytics integration is available free of charge to customers on the Usage-Based Monitoring plans.

  • To configure the integration, you must be an Admin, Co-Admin, or Power User in AlertSite, and must have a Google account with access to Google Analytics or Google Analytics 360 Suite.

  • The integration assumes that you have configured views in Google Analytics for the websites you are monitoring with AlertSite. You will need to map the Google Analytics views to the corresponding website monitors in AlertSite.

    Google Analytics views

Configuration

Integrating AlertSite with Google Analytics includes the following steps:

  1. Generate a Google client ID and client secret.

  2. Specify your Google client ID and client secret in AlertSite.

  3. Map Google Analytics views to AlertSite monitors.

Generate Google client ID and secret

To integrate AlertSite with Google Analytics, you need a Google client ID and client secret. Follow these steps to generate them:

  1. Open the Google API Console at https://console.developers.google.com/apis/dashboard. If you are not logged in to Google yet, log in.

  2. If you have multiple Google Accounts, switch to the account you use with Google Analytics.

  3. Click Create Project.

  4. Enter a name for the project, for example, AlertSite - GA integration, and click Create.

    Google API Console: Creating a project
  5. Click Enable APIs and Services at the top of the Dashboard.

    Google API Console: Enable APIs and Services

    Click the image to enlarge it.

  6. Search for analytics and select the Analytics API on the list.

    Google API Console: Analytics API

    Click the image to enlarge it.

  7. Click Enable.

    Google API Console: Enable Analytics API

    Click the image to enlarge it.

  8. In the navigation bar on the left, select Credentials.

    Google API Console: Credentials
  9. Switch to the OAuth consent screen tab.

  10. Enter AlertSite as the product name, optionally, fill out other fields, and click Save.

    Google API Console: OAuth consent screen

    Click the image to enlarge it.

  11. Switch to the Credentials tab, click Create credentials and select OAuth client ID.

    Google API Console: Create OAuth client ID

    Click the image to enlarge it.

  12. Select Other, enter an arbitrary name (for example, AlertSite GA integration), and click Create.

    Google API Console: Application name and type
  13. Google will generate a client ID and client secret for you. You will need to specify these values in AlertSite.

    Google client ID and secret

Authorize AlertSite to access Google Analytics

AlertSite UXM

  1. Go to  > Settings and switch to the Google Analytics tab.

  2. Click Add Account.

  3. Enter the Google client ID and client secret that you generated earlier, and click Get Code.

    Configuring access to Google Analytics

    Click the image to enlarge it.

  4. You will be redirected to the Google consent page. If you have multiple Google accounts, select the account you used to generate the client ID and secret earlier.

    Selecting a Google account
  5. Click Allow to confirm access to your Google Analytics data.

    Confirming access to Google Analytics data
  6. Copy the generated code.

    Google authentication code
  7. Paste this code into the Authentication Code field in AlertSite and click Save.

    Authentication code in AlertSite

    Click the image to enlarge it.

AlertSite 1.0

Previously, it was possible to set up Google Analytics integration using a Google email address for authentication. This approach is no longer supported. Email-based accounts are marked DEPRECATED and need to be updated to use the Google client ID and client secret. Monitor mappings configured in the deprecated accounts will be preserved with the new credentials.

Follow these steps to add a new Google Analytics account or update a deprecated account:

  1. Go to Configure > Google Analytics.

  2. To add a new account, click Add Account:

    Adding a Google account

    To convert an existing DEPRECATED account, select this account on the list and click Edit Account:

    Converting a deprecated account
  3. Enter the Google client ID and client secret that you generated earlier and click Get Code.

    Configuring access to Google Analytics

    Click the image to enlarge it.

  4. You will be redirected to the Google consent page. If you have multiple Google accounts, select the account you used to generate the client ID and secret earlier.

    Selecting a Google account
  5. Click Allow to confirm access to your Google Analytics data.

    Confirming access to Google Analytics data
  6. Copy the generated code.

    Google authentication code
  7. Paste this code into the Authentication Code field in AlertSite, and click Save.

    Authentication code in AlertSite

    Click the image to enlarge it.

Map Google Analytics views to AlertSite monitors

Now, you need to specify which Google Analytics views correspond to which AlertSite monitors. You can add or change these mappings at any time.

AlertSite UXM

  1. Click Login next to your Google client ID. This will display the options to map Google Analytics views to AlertSite monitors.

    Login

    Click the image to enlarge it.

  2. The mapping configuration displays two lists:

    • The Google Analytics Profile list on the left displays all views that exist in your Google Analytics account.

      Google Analytics views

    • The Monitor list on the right contains all your website monitors (single URL and DéjàClick monitors).

  3. Select an AlertSite monitor and a Google Analytics view that correspond to the same website or area of the website. Click Add to add more mappings, or to remove a specific mapping.

    Mapping Google Analytics views to AlertSite monitors

    Click the image to enlarge it.

    Tip: Different monitors can be mapped to the same Google Analytics view if needed.
  4. Click Save to save the configuration.

AlertSite 1.0

  1. Click Login next to your Google client ID. This will display the options to map Google Analytics views to AlertSite monitors.

    Login
  2. The mapping configuration displays two lists:

    • The Google Analytics Website Profiles list on the left displays all views that exist in your Google Analytics account.

      Google Analytics views

    • The AlertSite Devices list on the right contains all your website monitors (single URL and DéjàClick monitors).

  3. Select an AlertSite monitor and a Google Analytics view that correspond to the same website or area of the website. Click Add to add more mappings, or Remove to remove a specific mapping.

    Mapping Google Analytics views to AlertSite monitors

    Click the image to enlarge it.

    Tip: Different monitors can be mapped to the same Google Analytics view if needed.
  4. Click Submit to save the configuration.

View Google Analytics metrics in AlertSite charts

AlertSite fetches the Google Analytics data and overlays the data on a graph. Customers can see the data only in their own accounts.

To view charts with Google Analytics data:

AlertSite UXM

  1. Click Charting in the AlertSite header.

  2. On the left, select one or more monitors that have been associated with Google Analytics views.

  3. Select the desired Google Analytics metrics from the Metrics list.

  4. Configure other charting options as required.

You can hover over the data points on the chart to see the exact values of AlertSite and Google Analytics metrics for the corresponding period (hour or day).

Google Analytics metrics in AlertSite UXM charts

Click the image to enlarge it.

AlertSite 1.0

  1. Open the Dashboard.

  2. Monitors included in Google Analytics integration are displayed with the Google icon on the Dashboard. Clicking this icon will open the Google Analytics integration settings.

    Monitor with the Google icon
  3. Select the check boxes to the left of the monitor names:

    Selecting monitors
  4. Charts with the monitor metrics and Google Analytics data overlay will appear at the bottom of the Dashboard.

    Google Analytics data in AlertSite charts

    Click the image to enlarge it.

The charts allow you to select one AlertSite metric (either Performance or Availability) and one of the available Google Analytics metrics to see how they correlate. By default, the charts display response time vs Google Analytics Pageviews over the last 24 hours.

To change the selected Google Analytics metric, click the wrench icon in the top right corner of the chart, then select the desired metric on the list.

Select metrics

Click the image to enlarge it.

Hover over the data points on the chart to see the exact values of AlertSite and Google Analytics metrics for the corresponding period (hour or day).

Chart tooltips

Click the image to enlarge it.

Chart options

Click the wrench icon in the top right corner of a chart to view or change the chart options.

Primary Metric

Possible values: Response Time and Availability.

Response Time refers to the full page response time if the monitors use full page monitoring, and base response time otherwise.

Secondary Metric

Select one of the available Google Analytics metrics to overlay on the chart. Default is Pageviews. See Supported Google Analytics Metrics below for a list of supported Google Analytics metrics, and Dimensions & Metrics Reference for a description of these metrics.

Zoom

Select the time frame for the chart: 24 Hours, 7 Days, 14 Days or 30 Days. The 24 Hour chart displays hourly averages, others display daily averages.

Show Locations

By default, the chart shows the average response time or availability across all monitoring locations selected for this monitor. To view per-location metrics, select the Show Locations check box. You can customize the displayed locations by using the Locations list.

Show Locations in the chart

Locations

Displayed only if the Show Locations check box is selected. Contains a list of locations used by the monitor and lets you show or hide specific locations on the chart.

Apply changes to all open graphs

Click this button to apply the current chart’s configuration to other charts displayed on the AlertSite 1.0 Dashboard.

Chart display mode

AlertSite 1.0 Dashboard can display Google Analytics data charts in one column or two columns. To change the display mode:

  • Click  Tab Preferences in the top right corner of the Dashboard.

  • Choose the desired Graph display mode: Extended (1-column) or Standard (2-column). Other options do not apply to the Google Analytics data charts.

  • Click Save.

Supported Google Analytics metrics

The following table lists the Google Analytics (GA) metrics currently supported by AlertSite. For a description of these metrics, refer to Google Analytics Dimensions & Metrics Explorer.

Metric name GA dimension GA metric ID
Abandoned Funnels Goal ga:goalAbandonsAll
Average Order Value * Ecommerce ga:revenuePerTransaction
Average Quantity * Ecommerce ga:itemsPerPurchase
Average Revenue Per Item * Ecommerce ga:revenuePerItem
Average Time on Page * Page Tracking ga:avgTimeOnPage
Bounce Rate * Session ga:bounceRate
Bounces Session ga:bounces
Exits Page Tracking ga:exits
Goal Completions Goal ga:goalCompletionsAll
Goal Conversion Rate * Goal ga:goalConversionRateAll
Goal Value Goal ga:goalValueAll
New Users User ga:newUsers
Pages / Session * Page Tracking ga:pageviewsPerSession
Pageviews Page Tracking ga:pageviews
Product Revenue Ecommerce ga:itemRevenue
Quantity Purchased Ecommerce ga:itemQuantity
Sessions Session ga:sessions
Shipping Cost Ecommerce ga:transactionShipping
Tax Ecommerce ga:transactionTax
Transaction Revenue Ecommerce ga:transactionRevenue
Transactions Ecommerce ga:transactions
Unique Pageviews Page Tracking ga:uniquePageviews

* 24-hour average value.

Privacy notes

AlertSite access to view customer Google Analytics data combined with AlertSite data is restricted to designated AlertSite employees who have authorized access rights and are under non-disclosure agreements.

See Also

AlertSite Integrations
AlertSite 1.0 Dashboard

Highlight search results