Tracking GA events for multiple forms
-
Hi,
I’ve read the thread here:
https://wordpress.org/support/topic/tracking-event-for-multiple-forms/My question is, is there a smart way to track with GA several forms by sending to GA the name or ID of the form without adding it to the actual function?
So, using this function, but also letting GA know from which form (name or ID) the user sent it from.document.addEventListener( 'wpcf7mailsent', function( event ) { ga('send', 'event', 'Contact Form', 'submit'); }, false );Thanks!
Dan
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Tracking GA events for multiple forms’ is closed to new replies.