eCommerce tracking stopped working with monster insights
-
I am using the Monster Insights plugin with Shopp Google Analytics (https://store.objectiv.co/downloads/shopp-google-analytics/) plugin for a couple of sites with Shopp running on it. This was collecting ecommerce stats without any issues for a long time. Now it has stopped working. I believe it could be to do with recent monster insight updates. I can see that the shopp analytics plugin adds in the ecom stats using the filter and function below. Are there changes to Monster Insights that would stop this working? Any tips on how I can see if this ecommerce tracking is being called at all?
//The filter function shopp_loaded() { add_filter('yoast-ga-push-array-universal', array($this, 'add_shopp_universal_analytics'), 10, 1); } //The code supposed to be called.... function add_shopp_universal_analytics($push, $override = false) { if ( function_exists( 'is_shopp_thanks_page' ) && ! is_shopp_thanks_page() && ! $override ) return $push; $push[] = "'require', 'ecommerce', 'ecommerce.js'"; $push[] = "'ecommerce:addTransaction', { \n" . " 'id': '" . $Purchase->id ."', // Transaction ID. Required \n" . " }"; // Etc..... full tracking code here... $push[] = "'ecommerce:send'"; return $push; }
- The topic ‘eCommerce tracking stopped working with monster insights’ is closed to new replies.