Hello,
Are you talking about WooCommerce default tracking shortcode https://docs.woocommerce.com/document/woocommerce-shortcodes/ ?
Go to Appearance > Themes > install and activate Storefront default WooCommerce theme and check if it works fine. Let me know about the results.
Regards