Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #16113

    Hi there. How and where do I paste Google Adwords Conversion Tracking Code in the ‘Order Received – Thank You’ page?



    Go to wp-contentpluginswoocommercetemplatescheckout and open thankyou.php.




    Thanks Ismael.

    I downloaded the file, open with Notepad.

    Sanskrit is easier to read than this.

    Sorry, me zero experience!

    Do I paste the tracking code between

    </p> <?php endif; ?>

    Warm regards




    Maybe you can find this code

    <li class="method">
    <?php _e('Payment method:', 'woocommerce'); ?>
    echo $order->payment_method_title;

    Paste this code below

    <li class="google-adwords">
    <?php _e('Google Adwords Tracking Code:', 'woocommerce'); ?>
    <strong>PASTE THE CODE HERE</strong>




    Hi – found this useful bit too – so do the above first then do the following (comment out that bit as it says below).

    Unfortunately there is still a problem with WordPress 3.5.1 that has been documented for 6 years which replaces the end of the CDATA section “/* ]]> */” with “/* ]]> */”. The quick fix for this is to comment out the offending code in /wp-includes/post-template.php.

    function the_content($more_link_text = null, $stripteaser = false) {

    $content = get_the_content($more_link_text, $stripteaser);

    $content = apply_filters(‘the_content’, $content);

    /** $content = str_replace(‘]]>’, ‘]]>’, $content); */

    Google has a neat little extension for Chrome, Tag Assistant, which allows you to check that your Google code snippets are working on the displayed page. I ran that on the Order Received page and everything was finally functioning.

    I got it working.


    Hey, oneilldesign,

    Thank you for the tip. Very helpful. :)



Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Google Adwords Conversion Tracking Code’ is closed to new replies.