• Resolved fabswordpress

    (@fabswordpress)


    Hello guys

    so I have a massive difference in revenue between backend and analytics, some day its 50 % less than the backend value.

    – I checked it with Google Tag Assistant, where I receive a non-standard implementation issue (this is normal for the plugin i guess)

    – The external payment gateways are all redirected to woocommerce.

    – Is there a known issue with the autooptimize plugin?

    – I have the following code on all the payment methods (3-4) on the /order-received/xyz uri.

    <!-- WooCommerce Google Analytics Integration -->
    		<script type='text/javascript'>
    			var gaProperty = 'UA-XYZZZZZ';
    			var disableStr = 'ga-disable-' + gaProperty;
    			if ( document.cookie.indexOf( disableStr + '=true' ) > -1 ) {
    				window[disableStr] = true;
    			}
    			function gaOptout() {
    				document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
    				window[disableStr] = true;
    			}
    		</script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-UA-XYZZZZZ"></script>
    		<script>
    		window.dataLayer = window.dataLayer || [];
    		function gtag(){dataLayer.push(arguments);}
    		gtag('js', new Date());
    		gtag('set', 'developer_id.dOGY3NW', true);
    
    		gtag('config', 'UA-XYZZZZZ', {
    			'allow_google_signals': false,
    			'link_attribution': true,
    			'anonymize_ip': true,
    			'custom_map': {
    				'dimension1': 'logged_in'
    			},
    			'logged_in': 'no'
    		} );
    
    		
    		</script>
    		
    		<!-- /WooCommerce Google Analytics Integration --></head>

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @fabswordpress

    The plugin will only send payment data if the payment gateway redirects to the thank you page. So, you may want to see if a specific payment gateway is a common denominator for orders not sent to GA.

    Is there a known issue with the autooptimize plugin?

    Not sure but I’d recommend disabling the plugin to ensure plugins are working as expected before aggressive caching methods are enabled.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @fabswordpress. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the extension, please start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Non-standard implementation Issue (code included)’ is closed to new replies.