WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Analytics Conversion Goals - Additional Settings (3 posts)

  1. thebeanieman
    Member
    Posted 3 years ago #

    I have been trying to setup 'Google Analytics Conversion Goals'. The issue I have is that the form is submitted with ajax, so the page doesnt change.

    I have read this thread:
    http://wordpress.org/support/topic/plugin-contact-form-7-google-analytics-goals-using-the-using-the-_trackpageview-function

    Im just getting the same error as other people have reported, the confirmation message does not show. There doesn't seem to be a solution.

    The code I added to Additional Settings is:
    on_sent_ok: "pageTracker._trackPageview('/Contact/Send')";

    Can anyone help me please?

  2. asakota
    Member
    Posted 3 years ago #

    if you are using new google analytics tracking code...you should use following:
    on_sent_ok: "_gaq.push(['_trackPageview', '/thank-you.html']);"

    let me know if it works for you

  3. thebeanieman
    Member
    Posted 3 years ago #

    Thanks asakota, that has resolved the issue. Guess I need to check my analytics in a few days time.

    Thanks soo much,
    Beanie

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic