Forums

[resolved] [Plugin: Contact Form 7] - Google Analytics tracking, JS error (5 posts)

  1. crs1138
    Member
    Posted 11 months ago #

    The issue I am having is, when I add the pageTracker code to the on_sent_ok code the verification box no longer appears.

    on_sent_ok: "pageTracker._trackPageview('/contact/send-lisa.html');"

    This is indeed because of a Javascript error. The error is:

    Uncaught ReferenceError: pageTracker is not defined

    See it for yourself at http://pocketoxfordtheatre.com/contact/

  2. crs1138
    Member
    Posted 10 months ago #

    I just want to clarify, that I'm trying to do what is described at http://contactform7.com/tracking-form-submissions-with-google-analytics/

  3. crs1138
    Member
    Posted 10 months ago #

    I've resolved the issue by using, what's in that article as a note.

    Note: If you use newer version of the tracking code, you need to run this code instead:
    _gaq.push(['_trackPageview', '/mysite/thank-you.html']);

  4. blandydoes
    Member
    Posted 1 month ago #

    This is still an issue for me even though I am using the newer tracking code. Do I still put on_sent_ok: or just the code.

  5. dpcdpc11
    Member
    Posted 2 weeks ago #

    This is still an issue for me even though I am using the newer tracking code. Do I still put on_sent_ok: or just the code.

    Yes you have to put the "on_sent_ok" function as well.
    I can confirm that it works.
    Here's a tutorial that shows the whole process in details: http://www.searchingsam.com/wordpress-tracking-contact-form-7-conversions-in-google-analytics/#.UYJRcbWLDhC

Reply

You must log in to post.

About this Topic