Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor nutsmuggler

    (@nutsmuggler)

    Hello,
    the best way to accomplish that is to inject you GA code into the PHP that is generated fo the response. presently this would involve some manual hacking; take a look at the em-bookings.php file, after line 68; you’ll see a if-elseif chain, you can inject your js code where appropriate for your tracking goals.
    Even better, my colleague Marcus is integrating a number of action/filters into EM; with the next releases adding a js to the relative area wil be much simpler, it will be justa matter of adding a action into your theme.
    Davide

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    given that the booking form (the whole booking process) is being updated atm, it’s hard to say what hook to use as it’ll probably change. For now you could hack the code as mentioned by Davide until a hook is added (should be either this month or next)

    Thread Starter wpvince

    (@wpvince)

    Appreciate the replies guys, but I am a ”copy & paste’ coder so have no idea what to change in your code 🙁

    I am considering if within the Google Analytics goal tracking setup, we can use the option for ‘Regular Expression Match’ setup this way:
    /workshops/?event_id=*dbem-rsvp
    As that is what appears (with the event number in place of ‘*’) in the URL after a booking?

    Another method to consider is how Contact Form 7 plugin adds a input box for ‘Additional settings’ whereby the above is achieved with this code:
    on_sent_ok:”_gaq.push([‘_trackPageview’, ‘/contact-us/thanks’]);”

    I still think most website owners would be more comfortable with a separate ‘thank you’ page.

    Thanks for your patience.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] Google goal tracking’ is closed to new replies.