---
title: "GoogleAnalytics4Integration"
url: "https://nov18-dev.movespot.fyi/apis/portal-dev-3/versions/311d23f9-6037-4a0a-98d0-73df6a38f29f/schemas/GoogleAnalytics4Integration"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-dev-3/versions/311d23f9-6037-4a0a-98d0-73df6a38f29f.md

# GoogleAnalytics4Integration

Google Analytics integration configuration

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Portal
  version: 3.3.1
components:
  schemas:
    GoogleAnalytics4Integration:
      description: Google Analytics integration configuration
      type: object
      properties:
        enabled:
          description: Whether the integration is enabled
          type: boolean
        type:
          description: The type of the integration for categorization
          type: string
          enum:
            - analytics
        consent_required:
          description: Whether the integration requires user consent in order to send or
            utilize related data
          type: boolean
        config_data:
          description: Configuration data for the Google Analytics integration
          type: object
          additionalProperties: false
          properties:
            id:
              description: The Google Analytics measurement ID
              type: string
              example: G-XXXXXXX
              maxLength: 20
              minLength: 5
              pattern: ^G-[A-Za-z0-9-]+$
              x-validation-message: "must be a valid Google Analytics ID (format: G-XXXXXXX)"
            l:
              description: The datalayer's name you want data to be associated with
              type: string
              example: myNewName
              maxLength: 100
              nullable: true
          required:
            - id
      additionalProperties: false
      nullable: true
      required:
        - enabled
        - type
        - consent_required
        - config_data
```
