Know when a cart contains a subscription (recharge) product

Hi!
I am trying to know when a cart contains subscription products from within a custom web pixel. That information doesn’t seem to be available anywhere.
Is there a way to easily know that?

Thanks.

Hi @marcelo_onepet ,
This is Theodore from PageFly - Shopify Page Builder App.

Shopify’s web pixel doesn’t directly tell you if a cart contains subscriptions. Here are your options:

  • Use subscription apps like Recharge or Bold Subscriptions - they might offer cart data with subscription details.
  • Check the Shopify admin panel’s “Abandoned Checkouts” section to see product details in abandoned carts, then compare them to your subscription list.
  • For advanced users, consider custom theme code to capture cart data and identify subscription products.
  • On Shopify plans or higher, the “Website cart analysis report” might indirectly show co-carted subscription products.

Best regards,
Theodore | PageFly

Richard

Hi Theodor,

Thanks for taking the time to reply.

I was not 100% clear on my initial question.

We already use recharge.
We used to have 2 different checkouts: 1 from shopify (one time purchases) and 1 from recharge (subscriptions).

We moved to checkout extensibility so we don’t have 2 different checkouts any more.
We fired events from these 2 checkouts and it was easy for us to know when products purchased were on subscription plans because we simply hardcoded an attribute to be either “recharge” or “shopify” depending on where we were at.

Now we cannot do that because obvious reasons and were were looking for a way to know if an order contained subscription products but it seems there is no way to get that information from within custom web pixels (what we are using now to trigger events).