Analytics eCommerce

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
the plugin uses the "completed" action for ecommerce tracking
when ever disableordercompletedpage is set to true analytics ecommerce is never used.
9 years ago
Hi Hezy,

Thanks for reporting. I've just created a work item. But actually not sure that I know how it could be fixed
9 years ago
a.m. wrote:
Hi Hezy,

Thanks for reporting. I've just created a work item. But actually not sure that I know how it could be fixed



Would it be worthwhile to update the documentation to mention this?  Otherwise, people will continue to wonder why it's not working (which is something I faced).

The other option could be to update the text on the plugin's configuration page.
9 years ago
hi ron

there are 4 text boxes
1 is the Id
2 you should put the code u get from google add {ECOMMERCE} before the closing script tag
google universal code as follow:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'Google ID', 'auto');
  ga('send', 'pageview');

{ECOMMERCE}
</script>


leave the 3 and 4 as is.

the plugin will replace the ECOMMERCE with empty string on all pages part for the checkout completed, where it will be replaced by orders details.

make sure to set disableordercompletedpage to false
9 years ago
hezyz wrote:
hi ron

there are 4 text boxes
1 is the Id
2 you should put the code u get from google add {ECOMMERCE} before the closing script tag
as follow:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'Google ID', 'auto');
  ga('send', 'pageview');

{ECOMMERCE}
</script>


leave the 3 and 4 as is.

the plugin will replace the ECOMMERCE with empty string on all pages part for the checkout completed, where it will be replaced by orders details.


Hi Hezy,

I already have that.  It wasn't working until enabled the order completed page, as you first reported.  Without that setting in place, the {ECOMMERCE} code never gets added.  Once I enabled the order complete page setting, it works perfectly.
9 years ago
hezyz wrote:
hi ron

there are 4 text boxes
1 is the Id
2 you should put the code u get from google add {ECOMMERCE} before the closing script tag
as follow:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'Google ID', 'auto');
  ga('send', 'pageview');

{ECOMMERCE}
</script>


leave the 3 and 4 as is.

the plugin will replace the ECOMMERCE with empty string on all pages part for the checkout completed, where it will be replaced by orders details.


Hi Hezy,

I already have that.  It wasn't working until enabled the order completed page, as you first reported.  Without that setting in place, the {ECOMMERCE} code never gets added.  Once I enabled the order complete page setting, it works perfectly.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.