From 296861ce3a3fc930825d6f3e92fb9574fa1aa3fe Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Fri, 13 Jan 2023 15:07:16 +0500 Subject: [PATCH] feat: add GTM fired for integration with impact.com (#734) --- src/register/RegistrationPage.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/register/RegistrationPage.jsx b/src/register/RegistrationPage.jsx index 5eec3476..0c2bc249 100644 --- a/src/register/RegistrationPage.jsx +++ b/src/register/RegistrationPage.jsx @@ -189,6 +189,12 @@ const RegistrationPage = (props) => { type: 'event', eventName: 'authn-register-conversion', }); + + // Fire GTM event used for integration with impact.com + window.dataLayer = window.dataLayer || []; + window.dataLayer.push({ + event: 'ImpactRegistrationEvent', + }); } }, [registrationResult]);