Support

Home Forums Event Espresso Premium Keep Event name in URL throughout check-out process

Keep Event name in URL throughout check-out process

Posted: July 28, 2017 at 10:40 am

Viewing 9 reply threads


Burnt Orange Design

July 28, 2017 at 10:40 am

Hi!
Is there a way to keep the event name in the URL through the entire check-out process?

For example, we want the http://www.mysite.com/registration-checkout to be
http://www.mysite.com/events/lawyer-workshop/registration-checkout.

And the same with the /thank-you page…
http://www.mysite.com/events/lawyer-workshop/thank-you


Josh

  • Support Staff

July 28, 2017 at 10:54 am

Hi Burnt Orange Design,

There isn’t actually a way to change the checkout and thank you page urls to include /events/{name-of-event}. Event Espresso 4 expects there to be one registration checkout URL, and one Thank you URL, there cannot be many.


Burnt Orange Design

July 31, 2017 at 4:00 am

Thanks Josh,
What we’re trying to do is conversion tracking for each individual event using Google analytics. Is that possible?


Josh

  • Support Staff

August 1, 2017 at 2:06 pm

Hi Burnt Orange Design,

You’ll find one potential solution in this other topic:

https://eventespresso.com/topic/tracking-conversions-for-individual-events/#post-200424


Burnt Orange Design

August 16, 2017 at 6:48 am

Thanks Josh,
So if I wanted to use Tony’s suggestion of…

“For example on the thank you page you could load a conversion pixel from event meta so it would be unique for each event.”

How would I do that? Is there an example or a walk-through?

Thanks so much for your help!


Josh

  • Support Staff

August 16, 2017 at 10:44 am

Hi Burnt Orange Design,

There’s a similar example in the documentation that shows how to load Course Curriculum section to the Thank you page that you could follow. The difference is instead of a section of content that gets pulled in from a custom field, all you’re doing is a tracking pixel (which is much simpler).


Burnt Orange Design

August 17, 2017 at 1:07 pm

I’m sorry but maybe I’m an idiot. Are there anymore details you can give on how to do this. I read that post and every other answer I’ve read from this support forum is getting me more and more confused.

I want to be able to track conversions for each event. If I can just get conversions for each category of events, that could work too. I can’t image that no one has come up with a solution to this. Or some sort of plugin.

How do I implement the example in the link you sent? Can I place information in a custom field? There are no answers here.


Josh

  • Support Staff

August 17, 2017 at 1:31 pm

@Burnt Orange Design,

Are you familiar with how to use the Advanced Custom Fields add-on? If not, this is a good place to start:

https://www.advancedcustomfields.com/resources/getting-started-with-acf/

You’ll install the Advanced Custom Fields plugin and set up your tracking pixel field. Then you’ll add your tracking pixel code for each event into your advanced custom field, within the event editor page.

Then you add some code to your site so the tracking pixel code gets output to the thank you page. Your code will look something like this:

function my_tracking_pixel_output_function( $registration ) {
  if ( $registration instanceof EE_Registration ) {
    if( get_field('tracking_pixel', $registration->event()->ID()) ) {
     // add code to get and output tracking pixel here
    }
  }
}

add_action( 
'AHEE__thank_you_page_registration_details_template__after_registration_table_row', 
  'my_tracking_pixel_output_function', 
  10
);

You can add the above code to a functions plugin or into your WordPress theme’s functions.php file.


Burnt Orange Design

August 21, 2017 at 10:53 am

Thank you so much! That worked out great! How would I change this code if I placed the ACF in the Venue meta?


Josh

  • Support Staff

August 21, 2017 at 8:16 pm

You can change the code to check for the venue meta to look something like this:

https://gist.github.com/joshfeck/0cf1d4495e12e63d64a1b5ef79c7b459

Viewing 9 reply threads

The support post ‘Keep Event name in URL throughout check-out process’ 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