Support

Home Forums Event Espresso Premium Stripe Tracking JS

Stripe Tracking JS

Posted: May 25, 2021 at 11:35 am

Viewing 3 reply threads


Joseph Guarino

May 25, 2021 at 11:35 am

I’m evaluating moving to Stripe and I’m wondering if the plugin injects the tracking Javascript into every page or just the checkout pages?
TIA


Tony

  • Support Staff

May 25, 2021 at 4:32 pm

Hi there,

The Stripe payment method loads the Stripe library on every front end page as recommended by them, according to their docs doing so allows Stripe to detect suspicious behaviour that may be indicative of fraud as customers browse your website.

More details here:

https://stripe.com/docs/disputes/prevention


Joseph Guarino

June 2, 2021 at 7:24 am

That is annoying. Are there any other providers you might recommend that have competitive rates and DON’T use this kind of site wide tracking?


Tony

  • Support Staff

June 2, 2021 at 7:42 am

You could always dequeue the Stripe JS file on all pages except the registration checkout page, would that work?

Stripe recommends using it site-wide but it can work just loading it on the checkout page, you can do that with a snippet like this:

https://gist.github.com/Pebblo/fec9ba9c123186500c4e2940313bb680

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Note the above works if your checkout page slug is ‘registration-checkout’, if not just set the page slug on Line 5 within the is_page() check.

Viewing 3 reply threads

The support post ‘Stripe Tracking JS’ 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