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

crankyjack21
Shopify Partner
1 0 0

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

Replies 0 (0)