https://github.com/stape-io/unique-event-id-variable
Unique Event ID Variable for Google Tag Manager WEB Container
https://github.com/stape-io/unique-event-id-variable
event-deduplication facebook facebook-conversion-api gtm gtm-custom-template stape
Last synced: 3 months ago
JSON representation
Unique Event ID Variable for Google Tag Manager WEB Container
- Host: GitHub
- URL: https://github.com/stape-io/unique-event-id-variable
- Owner: stape-io
- License: apache-2.0
- Created: 2021-03-11T17:25:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-20T06:57:05.000Z (7 months ago)
- Last Synced: 2025-03-28T04:52:20.543Z (3 months ago)
- Topics: event-deduplication, facebook, facebook-conversion-api, gtm, gtm-custom-template, stape
- Language: Smarty
- Homepage: https://stape.io/how-to-set-up-facebook-event-deduplication-in-google-tag-manager/
- Size: 21.5 KB
- Stars: 13
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unique Event ID Variable for Google Tag Manager WEB Container
Custom variable for Google Tag Manager Web container that generated a unique ID for Google Tag Manager events.
It can be used to set up event deduplication for Facebook conversion API.## How it works
Variable is generated based on the data in the DataLayer, current timestamp and random number:
For example:
```
Event ID: '1646750371301_16467595538826'
```## How to set it up
The instructions for setting up **Facebook conversion API event deduplication** using this variable are described in [this blog post](https://stape.io/how-to-set-up-facebook-event-deduplication-in-google-tag-manager/).
## Open Source
Unique Event ID Variable for GTM is developed and maintained by [Stape Team](https://stape.io/) under the Apache 2.0 license.