Support

Home Forums Event Espresso Premium Google AdWords Conversion Tracking Thank You Page

Google AdWords Conversion Tracking Thank You Page

Posted: November 6, 2013 at 2:28 am


Ion Paciu

November 6, 2013 at 2:28 am

Hello,

I’ve searched the forum and I could’t find a definite answer regarding this issue. How would you recommend implementing the Google Adwords Conversion Tracking code ?
We have 2 payment methods – online – with Paypal and CC and offline with bank transfer
How would you suggest implementing the tracking code ?

Keep in mind that we have to specify a variable in the tracking code that holds the value for google_conversion_value.

Awaiting your reply.
Cheers,


Josh

  • Support Staff

November 6, 2013 at 10:34 am

Hi Ion,

One way that tracking code can be added to the Thank you page is by adding some code to the bottom of the payment_overview.php template. You can copy this template over to /wp-content/uploads/espresso/templates to preserve your changes the next time you update Event Espresso.

Here is some example code that shows how to run the tracking code only if the payment is complete. If it needs to run every time the Thank You page the thank you page loads you can remove the switch case:

switch ( $payment_status ) {
		case 'Completed':
			// tracking code goes here
			
			break;
		
		default:
			echo "<!-- not complete -->";
			break;
	}

The support post ‘Google AdWords Conversion Tracking Thank You Page’ 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.

Event Espresso