Posted: June 12, 2014 at 8:12 am
|
Hi there, But not being a developer I just need some more step by step guidance. I need the conversions to track every time Thank you page loads. (so not only on complete payments) PS: I have an older version of EE v.Version 3.1.30.5P (we have several customizations and need to get organized to update and test properly before updating versions) |
Hello, You could use a WP conditional to load the code only on the header or footer of the thank you page. There is a tutorial here: http://wpsites.net/wordpress-tips/tracking-code-specific-page/ — |
|
|
Lorenzo – thx but that does not help. Please give detailed instructions to modify the payment_overview.php file. |
Hi, Which part of the tutorial was confusing? It explains how to setup tracking for several popular themes and then provides an example that will work for all themes. Try this: add_action( 'wp_footer', 'wpsites_add_tracking_code' ); function wpsites_add_tracking_code() { if ( is_page('thank-you') ) { echo'<div class="tracking-code">add your tracking code for google here</div>'; } } The code above can be added to a child theme’s functions.php file or a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
|
Hi, |
Hi Florian, Please take a moment and review the code that Lorenzo kindly suggested. In it you’ll see:
This means the code will only run on the thank you page, it will not run on any other page as you suggest. |
|
The support post ‘Adding Adwords conversion code to payment_overview.php’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.