This guide will explain how to use Google Tag Manager to track Formyoula online form.
- Add the following javascript snippet on the start of the first page of the form.
- Update GTM-XXXXXXX with Google Tag Manager id.
- Add the below code to every page for tracking with different pageName and pageTitle properties.
- We will use this dataLayer.push as a triggering condition in GTM (that activates the GA Pageview tag) and then send the title and page name (page over to GA).
- Follow this for more info on data layer https://developers.google.com/tag-platform/tag-manager/web/datalayer
- Go to Google Tag Manager workspace.
- Create variables in Google Tag Manager.
- Create a Custom Event.
- Go to Tags > New > GA4 event tag
- GA4 configuration tag (that you should have created before). This tag should fire on All Pages.
- Disable the checkbox in the GA4 configuration tag.
- Publish the changes and start tracking.
Don't hesitate to contact us at [email protected] or the Formyoula in-app chat for any questions.🙂