PINTEREST ADD TO CART EVENT CODE for studio theme

Topic summary

Main issue: Difficulty adding Pinterest “addToCart” conversion event in the Shopify Studio theme. The original poster cannot find where the add-to-cart logic lives—searched theme.liquid, main-product.liquid, and a potential custom.js, but none contain the relevant code.

Context: “addToCart” is a tracking event that should fire when a product is added to the cart. The Studio theme’s add-to-cart functionality may be handled in different template sections, snippets, or theme JS assets not clearly named.

Latest update: Another participant asks if a resolution was found, indicating no solution is documented in the thread.

Status: Unresolved.

Open questions:

  • Which Studio theme file(s) handle the add-to-cart action or AJAX cart updates?
  • Where should the Pinterest event be injected (e.g., section JS, global cart script, or a theme asset)?
Summarized with AI on January 22. AI used: gpt-5.

I am trying to add Pinterest addToCart event code manually, but I cannot find the addtoCart section on the theme.liquid or main-product.liquid file and i have tried searching for the custom.js file too but didn’t find that as well.

I am using the Studio theme

1 Like

did you ever find a resolution for this?