How to Integrate Google Tag Manager with FusionAuth for Account Verification Tracking
-
Is there a way to integrate Google Tag Manager (GTM) into our FusionAuth applications? Specifically, we’d like to track when a user has verified their account after account creation.
-
Yes, this can be achieved using FusionAuth’s Webhooks. You can trigger a Webhook when the user.registration.verified event occurs and send the necessary data to Google Tag Manager (GTM).
Steps to Set Up:
- Create a Webhook in FusionAuth:
- Navigate to Settings > Webhooks in the FusionAuth Admin UI.
- Create a new Webhook and configure it to trigger on the user.registration.verified event.
- Enable the Webhook for Your Tenant:
- Go to Tenant > Webhooks and enable the Webhook for the desired tenant.
- Integrate with GTM:
- While FusionAuth Webhooks send data to external systems, ensure that GTM can ingest Webhook data. From my research, GTM supports Webhook ingestion, but you may need to configure a custom setup within GTM to process the incoming data.
Resources for Reference:
This approach allows you to track account verification events seamlessly.
- Create a Webhook in FusionAuth:
-