Skip to content

webhasan/gtm-datalayer-for-wpform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

GTM DataLayer for WPForm Tracking with All Inputs Values

How to use

  1. In Google Tag Manager, create a new tag as a custom HTML tag.
  2. Inside the tag, paste the entire code from the wpform-datalayer.js file provided in this repository. Don't forget to wrap the code with <script> tag.
  3. Set the trigger to fire on All Pages page views.

Once you've configured this setup, you'll begin receiving Google Tag Manager dataLayer events as wpform_submit. You will get form ID as formId and all other form inputs.

About

WP Form GTM DataLayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published