• Resolved saile00

    (@saile00)


    Hi,

    I am having problem tracking events when a contact form is submitted. It used to work however stopped after updates to the Contact Form 7 plugin.

    Additional Settings:
    on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘Submitted’);”

    I have added the appropriate settings for Goal Tracking in Google Analytics.
    Category: Contact Form
    Action: Submitted
    The rest is blank.

    I have tried many different codes in Additional Settings and nothing seems to work.

    Any support would be appreciated.

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can I see the site?

    Thread Starter saile00

    (@saile00)

    The website can be found:here

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try changing ‘ga’ with ‘__gaTracker’ as:

    on_sent_ok: "__gaTracker('send', 'event', 'Contact Form', 'Submitted');"

    If this doesn’t work, try switching to the default theme and deactivating all other plugins.

    Thread Starter saile00

    (@saile00)

    Thanks, I’ll give this a go

    Please ignore my pervious post above. It was a long day. I noticed now I didn’t put in a closing single quote by Forms on the Contact Form 7 line.

    It’s working, even with a label… awesome ??

    Sorry about that.

    Hello,

    I am having this problem and I have tried you suggetions is there anything else I can try?
    Thank you for your help.

    Hello,

    Did you get this to work?

    Thread Starter saile00

    (@saile00)

    I did manage to get this working.

    I used the code:

    on_sent_ok: “ga(‘send’, ‘event’, ‘Contact_Form_1’, ‘submit’);”

    Ensure “Contact_Form_1” is the same name as your contact form as it could be different.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Contact form 7 and google analytics event problem’ is closed to new replies.