Support

Home Forums Event Espresso Premium AdWords Conversion Tracking

AdWords Conversion Tracking

Posted: August 26, 2017 at 2:48 pm

Viewing 5 reply threads


wmnf

August 26, 2017 at 2:48 pm

I see the post below and it mentions hooks to come. Are there any hooks to use or what is the best way to integrate conversion tracking?

https://eventespresso.com/topic/google-conversion-tracking/


wmnf

August 26, 2017 at 2:51 pm

And is it possible to send a value to the conversion tracker dynamically of the ticket sale amount?


Josh

  • Support Staff

August 28, 2017 at 7:44 am

Hi there,

The other topic you linked to was actually regarding Event Espresso 3.

In Event Espresso 4 there are hooks that fire during the registration process and they can be used to get data about the registration (and in turn use that data for things like sending a ticket sale amount).

Here’s an example of one of the hooks, this one fires when the registration process is finalized:

https://github.com/eventespresso/event-espresso-core/blob/master/modules/single_page_checkout/reg_steps/finalize_registration/EE_SPCO_Reg_Step_Finalize_Registration.class.php#L91


wmnf

August 28, 2017 at 1:55 pm

So the hook is an action hook as in the following?

add_action(‘finalize_registration’, ‘adwords_conversion_campaign’);


wmnf

August 28, 2017 at 1:56 pm

Any docs on the hooks?


Josh

  • Support Staff

August 28, 2017 at 4:36 pm

The hook is actually the do_action(). Here’s an example of how to add an action to that hook:

add_action('AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed', 'your_custom_function_for_adwords_tracking', 10, 2);

function your_custom_function_for_adwords_tracking($checkout, $txn_params) {
// code for adwords conversion tracking goes here
// $checkout and $txn_params variables can be used in this function
}
Viewing 5 reply threads

The support post ‘AdWords Conversion Tracking’ 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