Home Forums Event Espresso Premium Stripe Tracking JS

Stripe Tracking JS

Posted: May 25, 2021 at 11:35 am

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?


  • 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:

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?


  • 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:

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

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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso