• Hi,

    The plugin adds SKU to dataLayer in this JavaScript:

    <script data-cfasync="false" data-pagespeed-no-defer type="text/javascript">

    As “sku”:”XXX”

    Also SKU is binded to ‘Add to cart” button here:

    <input type="hidden" name="gtm4wp_sku" value="XXX" />

    Because of some reasons, temporary I can’t have any signs of SKU in a product page source code. How to easily remove it? I thought in the settings will be some filter, that can remove any data in woocommerce but there is no. Do you know a snippet that would remove it?

    BR

    • This topic was modified 2 years, 11 months ago by elparts.
Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Currently, the only way is to use the gtm4wp_eec_product_array WordPress hook using a custom PHP code and inside this hook function change the value to 0 (do not remove the variable).

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove SKU (or any other Woocommerce data) from layer ?’ is closed to new replies.