I have a similar issue, except that I have multiple forms, each with their own “Thank You.” page. My client offers different services and the thank you pages are customized with next steps depending on the service requested.
I can follow the example from on_sent_ok Is Deprecated, but that doesn’t go into how to address my problem with multiple contact forms and multiple thank you pages.
Would I just repeat the If loop for each of my forms?
{
if ( ‘123’ == event.detail.contactFormId ) {
ga( ‘send’, ‘event’, ‘Contact Form’, ‘submit’ );
}
Could you perhaps help with an example for use when there are multiple forms? I really appreciate how easy Contact Form 7 is to use, but this is beyond my skill level.
Thank you.
-
This reply was modified 8 years, 1 month ago by jamesbaldiga.