• Resolved tonyzyc

    (@tonyzyc)


    I have installed woocommerce on my local computer, I found two lines of Jetpack code in the source code, but I don’t have the Jetpack plugin installed, there is a folder at \woocommerce\vendor\automattic\, so I think the code should be added by woocommerce.

    How to remove the codes?

    <link rel='dns-prefetch' href='//stats.wp.com' /> 
    
    <script src="https://stats.wp.com/w.js?ver=202419" id="woo-tracks-js"></script>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @tonyzyc,

    Thanks for reaching out.

    Just curious, may we understand why you would like to remove the codes? Are they affecting the functionality of your store in any way?

    The codes you’re seeing are actually a part of WooCommerce, even without having installed Jetpack, they get automatically installed. Please note that by removing the code, you may lose some of the WooCommerce functionalities.

    Thread Starter tonyzyc

    (@tonyzyc)

    This is because these codes slow down the loading of the page and lower the score of the page in Google PageSpeed.

    What is the function of these codes?
    I also have an older version of Woocommerce that didn’t have these codes, which version of Woocommerce started to introduce Jetpack?

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @tonyzyc,

    How to remove the codes?

    <link rel='dns-prefetch' href='//stats.wp.com' /> 
    
    <script src="https://stats.wp.com/w.js?ver=202419" id="woo-tracks-js"></script>

    The tracker script referenced here are called in instances where WooCommerce Shop opted into sharing some anonymised stats with the team at WooCommerce.com. To disable that, and thereby prevent loading of the script, you’ll want to disable tracking at WooCommerce > Settings > Advanced > WooCommerce.com > Usage Tracking > Check – Allow usage of WooCommerce to be tracked.

    What is the function of these codes?
    I also have an older version of Woocommerce that didn’t have these codes, which version of Woocommerce started to introduce Jetpack?

    Basically track usage of our plugins. This has been an option since WooCommerce 2.3.

    Learn more:

    Cheers!
    -OP

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Jetpack codes’ is closed to new replies.