I am trying to add Facebook tracking code for specific events to the thank you page using is_page() in the theme footer.
This is fine but of course this fires the code for all sales rather than the specific event.
How would I check for a specific event ID on the thank you page in the footer?
Get the e_reg_url_link value from the $_REQUEST array.
Do an SQL search in the *_esp_registration table (* = prefix) to get the registration and then use the EVT_ID value to check against the Event ID.
Hope that helps!
Viewing 1 reply thread
The support post ‘Event specific tracking code’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.