Events Manager
[resolved] Track conversions (5 posts)

  1. nostro
    Posted 1 year ago #

    Hi everyone.
    I desperately need help on how to track conversions / i.e. when a user makes a booking. I'm bringing people in using google ads and other resources and need to track conversions, to see what's getting people to a make a booking.
    I've found an old post but the solution there doesn't seem to help: http://wordpress.org/support/topic/plugin-events-manager-google-goal-tracking?replies=4
    Any help much appreciated!


  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #


    At what points in the booking process do you need to run tracking codes?

  3. nostro
    Posted 1 year ago #


    the moment when the user clicks "book now" button / get's the "thanks for your booking" message. The easiest thing would be to link to a "thank-you" page, but the "thank you" message gets displayed directly in the same page.

    Thanks for helping us out on this one, I've spent days trying to figure it out, and it's really important for our project.

  4. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    If you add this snippet to the functions.php file of your theme, it should redirect users to a thank you page:

    function my_em_booking_redirect(){
    	jQuery(document).bind('em_booking_success', function() {
    		window.location.href = "PAGE";
    add_action('em_gateway_js', 'my_em_booking_redirect');

    Make sure you change PAGE to the full URL of the page, which can be a standard page in WordPress. You can add something like this

    if (is_page('thank-you'){
    // tracking code here

    to the header.php file of your theme to run the tracking code only on the thank you page.

  5. nostro
    Posted 1 year ago #

    Thanks Caimin!

    This works like a charm and is very useful to track conversions on google analytics and other sites.

    Sorry for the late reply though.

    Thanks again,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic