Hide all product prices from DevTools inspector (it is showing in the id="web-pixels-manager-setup")

Topic summary

Issue: Price data is still exposed to non-logged-in visitors via the Shopify script “web-pixels-manager-setup,” visible in the browser’s DevTools (developer tools), despite hiding prices in the rendered storefront.

Context: A B2B store wants to prevent price scraping while keeping the catalog publicly accessible. Prices are already hidden in templates using Liquid conditionals ({% if customer %}) for anonymous users.

Current limitation: Although prices do not render on the page, they appear in client-side script data associated with Shopify’s Web Pixels Manager (used for tracking/analytics), which DevTools can inspect.

Request: Guidance on how to prevent or remove price references from the “web-pixels-manager-setup” payload for non-customers (e.g., disable, redact, or conditionally control this data).

Status: No solution or responses yet; the thread remains open.

Summarized with AI on January 7. AI used: gpt-5.

Hi guys

Does anyone know how we can stop prices appearing in the shopfiy script “web-pixels-manager-setup”?

We are trying to stop all references to prices appearing in devtools if you are not a customer.

We have hidden/stopped them rendering in all other sections of the site for users who aren’t logged in using

{% if customer %}

We are a b2b site and don’t want our site to be scraped for pricing data. We need to leave the site open for users to see our range of products.

Thanks for your help