Skip to main content

Configuring Google Analytics

To configure Google Analytics, simply add the googleAnalyticsId property to your portal configuration.

konfig.yaml

_32
outputDirectory: /tmp/acme-sdks-out
_32
specInputPath: api.yaml
_32
specPath: api-fixed.yaml
_32
portal:
_32
title: Acme
_32
primaryColor: "#1f334e"
_32
logo:
_32
light: portal-logo-light.png
_32
dark: portal-logo-dark.png
_32
googleAnalyticsId: G-XXXXXXXXXX
_32
documentation:
_32
sidebar:
_32
sections:
_32
- label: Guides
_32
links:
_32
- id: getting-started
_32
path: docs/getting-started.md
_32
- id: client-side-direct-api-usage
_32
path: docs/client-side-direct-api-usage.md
_32
demos:

How to get your Google Analytics ID

  1. Navigate to your Google Analytics dashboard and login.
  2. Click on the gear icon in the bottom left.

Gear

  1. Click on the Data Streams tab.

Sidebar

  1. Click on your data stream.

Data Streams

  1. Copy the Measurement ID value.

Measurement ID