• Resolved katmacau

    (@katmacau)


    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;
    	}
    • This topic was modified 5 years, 9 months ago by katmacau.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter katmacau

    (@katmacau)

    After doing some more research I noticed this in the changelog:

    the filter yoast-ga-push-array-universal has been mapped to monsterinsights_frontend_tracking_options_analytics_end.

    Does that mean that I need to change to use the monstersights_etc filter name instead now? If so are the parameters the same?

    Plugin Author chriscct7

    (@chriscct7)

    Hi there,
    You’ll want to get in touch with our support staff at monsterinsights.com/lite-support/ and we can see if we can help you with that.

    -Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘eCommerce tracking stopped working with monster insights’ is closed to new replies.