Google Ads conversion tracking with Modern Events Calendar

Hi there,

Is it possible to set up conversion tracking for Google Ads with bookings for Modern Events Calendar? I would expect that one could simply add an event tag to the checkout page, but I’m not 100% sure whether this is the correct thing to do? If it is, should I simply add the tag to the functions.php file using the page id? An example of an event page for which I’d want to track bookings: https://boogiebackdance.com/events/starter-kit-7-28-jan/

Hey @muriel,

Regretfully, we are not Google Ads Conversion experts so we can’t provide guidance for this. But, if you could detail what needs to be done, we might be able to point you in the right direction.

Thanks.

Hi @christian_y thanks – I basically just need to add a line of code to the button on the checkout page, to track clicks:

<button onclick="return gtag_report_conversion(‘http://example.com/your-link')">Submit</button>

I’m not sure how to do this, since the page is generated by the WooCommerce plugin. Any idea if this is possible?

Hey @muriel,

Thanks for providing details. Regretfully though, that would require custom WooCommerce development which is beyond the scope of our theme support.

I could give you some pointers though but please note that if you encounter problems in any case, you’ll need to hire a web developer.

  1. The WooCommerce checkout page button has an ID of place_order. You can target that in a jQuery code that would trigger a function if the WC button is clicked. In theory, the code would look like this:
jQuery("#place_order").on("click", function() {
 return gtag_report_conversion('http://example.com/your-link');
});
  1. Use third-party plugins. Check out the plugin that suits your project from this Google Search Result.

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.