Javascript exception with theme
-
If a theme uses product display from a page that isn’t the WC shop or product page, Google Analytics is not installed because is_woocommerce() returns false. However, the shop item loop items do not check for this.
In includes/class-wc-google-analytics-js.php, at the top of function listing_impression, add:
if (!is_woocommerce()) { return; }
The topic ‘Javascript exception with theme’ is closed to new replies.