WordPress.org

Ready to get started?Download WordPress

Forums

contactform7 and googleadwords tracking code (1 post)

  1. teresavance
    Member
    Posted 5 months ago #

    Hi

    I want to avoid creating a new "thank you page" on contact form, but need to track adwords conversions for my client. I have gleaned a certain amount of information from this thread http://wordpress.org/support/topic/plugin-contact-form-7-contact-form7-google-adwords-conversion-code/page/2?replies=31 but it doesn't quite meet my needs.

    I see that I will have to pop a bit of extra code in the additional settings on contact form 7,, i.e. on_sent_ok: "Tracking();"

    And then set up a function Tracking(); in header.php which executes the tracking code once the conversion has taken place. The example in the thread above looks nothing like my Google adwords tracking code, and I am not sure how one would alter it to make mine execute. Here is the tracking code I have:

    <!-- Google Code for Enquiry Conversion Page --> <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1036632694;
    var google_conversion_language = "en";
    var google_conversion_format = "2";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "dqsJCKTCjggQ9oSn7gM"; var google_conversion_value = 0; var google_remarketing_only = false;
    /* ]]> */
    </script>
    <script type="text/javascript"
    src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt=""
    src="//www.googleadservices.com/pagead/conversion/1036632694/?value=0&label=dqsJCKTCjggQ9oSn7gM&guid=ON&script=0"/>
    </div>
    </noscript>

    I would be grateful for any advice! Thank you.

Reply

You must log in to post.

About this Topic