• Hi,
    I’m using Contact Form 7 and I would like to track with Google analytics the contact forms which are submitted. Everything is explained here https://contactform7.com/blog/2009/11/24/tracking-form-submissions-with-google-analytics/
    –> on_sent_ok: “pageTracker._trackPageview(‘/mysite/thank-you.html’);”

    But it was before the new asynchron code of google analytics.
    Could somebody tell me what is the new track code I could use ?

    –> I’ve tried this but it doesn’t seem to work : on_sent_ok: “_gaq.push([‘_trackPageview’,page]);”

    Thanks for your help

Viewing 1 replies (of 1 total)
  • Thread Starter manuarmand

    (@manuarmand)

    I have the answer.

    on_sent_ok: “_gaq.push([‘_trackPageview’, ‘/page’]);”

    NB the virtual page must have a leading forward slash /

Viewing 1 replies (of 1 total)
  • The topic ‘Google Analytics and Contact Form 7’ is closed to new replies.