The Dinmo Tag processes incoming GA4 requests and stores the data in BigQuery.
The script processes event data in the following steps:
- Data Extraction: Reads event data received from the tagging server.
- Transformation: Filters, transforms, and maps the data into a predefined schema compatible with BigQuery.
- Enrichment: Adds user metadata, query parameters, and additional fields for enriched analytics.
- Insertion: Inserts the transformed data into BigQuery table.
It includes:
- Filtering of unwanted parameters.
- Support for GA4 event fields.
- Automatic handling of nested fields such as
items.
- A Google Cloud project with BigQuery enabled.
- A BigQuery dataset created in your project.
- A BigQuery table set up using the
table.jsonfile from this github repository. - Correct permissions assigned to your provided service account email (BigQuery Write permissions).
- A properly configured GTM server-side tagging environment.
- Add the template.tpl to your server-side GTM container.
- Configure the following fields in the script:
bqProjectId: Your Google Cloud Project ID.bqDatasetId: The BigQuery dataset name.bqTableId: The BigQuery table name.
- Set optional fields such as excluded parameters (
excludeParams) and update parameters (updateParams). - Deploy the container to your server.
- Data Transformation: Automatically maps GA4 fields to BigQuery-compatible fields.
- Field Filtering: Excludes unnecessary or sensitive fields using
excludeParams. - Enrichment: Adds query parameters and user properties to event data.
- Error Logging: Logs errors and success messages for easy debugging.
To ensure that the integration works as expected:
- Check logs in the GTM server-side container for successful and failed events.
- Query your BigQuery table to verify the inserted data.
Encountered an issue or have feedback? Please report bugs via GitHub or contact us directly at support@addingwell.com.
The Dinmo tag for GTM Server-Side is developed and maintained by Addingwell under the Apache 2.0 license.