• Hello.

    After tons of tries and searching for a solution i couldn’t put the submit tracking event working to Google Universal Analytics..

    Here’s what i’m doing.

    I’m using a plugin called metronet tag manager in order to insert the universal analytics code. I tested with the pages and it works as intended. When i use an event link for email as such as <a href="emailto:example@mail.com" onclick="ga('send', 'event', 'Email', 'click to email', 'example@mail.com');">Send Email</a> it works as well.

    But when i try to do the same thing for contact form 7 by adding on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');" it doesn’t work at all. It even doesn’t accept the submit form anymore, and i’m forced to add the tags <script> to it to be able to submit the form successfully..
    I’m using the WPML MAIL SMTP plugin for the email validation.

    Please help…

    https://wordpress.org/plugins/contact-form-7/

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

    (@takayukister)

    Can I see the site?

    Thread Starter Johndesu

    (@johndesu)

    http://byd.pt

    The initial video has an auto startup, you have to pause it. The contact form is located at end of the page next to google map.

    Right now i didn’t add the <script> tag on the on_sent_ok so when you submit something it’s going to show in portuguese “Message not sent. Please try again later or contact the administrator”.

    助けてくれてありがとうございます、 この状況はほんとにもうわかりません。。。

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Check the page with Firebug. You’ll see a JavaScript syntax error that is likely causing this issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Universal Analytics Submit Event Not Working’ is closed to new replies.