Forums

Contact Form 7 and Google tracking (2 posts)

  1. rankability
    Member
    Posted 2 years ago #

    Hi

    I am using the latest contact form 7 plugin. All good but I cannot get it to work with google analytics or PPC tracking.

    I am trying to track ppc conversions using the ppc conversion tracking code on my thankyou page, http://www.rankability.co.uk/thankyou.php.

    The previous page is http://www.rankability.co.uk/150month-seo-package where the form is and I am trying to redirect to the page aswell, after the form send button has been clicked.

    I have placed google analytics code, the ppc conversion code onto the thankyou page, and this code into the forms 'addition settings' field.
    on_sent_ok: "pageTracker._trackPageview('/thankyou.php');"
    on_sent_ok: "location.replace('www.rankability.co.uk/thankyou.php');"

    I hve been referring to this article, but still cannot get it to work.
    http://contactform7.com/2009/11/24/tracking-form-submissions-with-google-analytics/

    Not sure if it is to do with the pageTracker object?? Is this unique for each website/tracking code???

    Anyway, when I complete the form, the page redirects to the following URL

    http://www.rankability.co.uk/150month-seo-package#wpcf7-f8-p1336-o1

    I would also like to use the Google Optimiser and AB ration testing so need the form page to redirect to the thankyou page.

    hope this makes sense

    Many Thanks

    Rob

  2. Fee
    Member
    Posted 1 year ago #

    Hi there, how did you determine what the page redirect url was?

Topic Closed

This topic has been closed to new replies.

About this Topic