3.40 step by step how to configure google analytics widget...

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
Can anybody tell me in laymen terms how to configure the google analytics widget? I cant find much about that anywhere.

Thanks.
9 năm cách đây
Hi,

please have a look at Google Analytics or Universal Analytics Plugin
9 năm cách đây
Classic google analytics

ID:

UA-your GA ID-1

Tracking code with {ECOMMERCE} line:

<!--Google Analytics--><script type="text/javascript">var _gaq = _gaq || [];var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]);_gaq.push(['_setAccount', '{GOOGLEID}']);_gaq.push(['_setDomainName','www.bestbullysticks.com']);_gaq.push(['_trackPageview']);{ECOMMERCE}(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();</script>

Tracking code for {ECOMMERCE} part, with {DETAILS} line:

_gaq.push(['_addTrans', '{ORDERID}', '{SITE}', '{TOTAL}', '{TAX}', '{SHIP}', '{CITY}', '{STATEPROVINCE}', '{COUNTRY}']);
{DETAILS}
_gaq.push(['_trackTrans']);

Tracking code for {DETAILS} part:
_gaq.push(['_addItem', '{ORDERID}', '{PRODUCTSKU}', '{PRODUCTNAME}', '{CATEGORYNAME}', '{UNITPRICE}', '{QUANTITY}' ]);
9 năm cách đây
Google universal analytics is latest now and great features, here how to add basic functionalists

ID:

UA-your GA ID-1

Tracking code with {ECOMMERCE} line:


<!-- Google Universal analytics-->
<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', '{GOOGLEID}', 'auto');
ga('require', 'linker');
ga('require', 'linkid', 'linkid.js');
ga('require', 'displayfeatures');
ga('require', 'ec');
{ECOMMERCE}
</script>
<!-- Google Universal analytics end-->


Tracking code for {ECOMMERCE} part, with {DETAILS} line:

ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {'id': '{ORDERID}','affiliation': '{SITE}','revenue': '{TOTAL}','shipping': '{SHIP}','tax': '{TAX}'});
{DETAILS}
ga('ecommerce:send');
ga('ec:setAction', 'purchase', {'id': '{ORDERID}','affiliation': '','revenue': '{TOTAL}', 'tax': '{TAX}','shipping': '{SHIP}','coupon': ''});

ga('ec:setAction', 'checkout_option', { 'step': 3, 'option': 'Complete' });
ga('send', 'pageview');


Tracking code for {DETAILS} part:
ga('ecommerce:addItem', {'id': '{ORDERID}','name': '{PRODUCTNAME}','sku': '{PRODUCTSKU}','category': '{CATEGORYNAME}','price': '{UNITPRICE}','quantity': '{QUANTITY}'});

ga('ec:addProduct', {'id': '{PRODUCTSKU}','name': '{PRODUCTNAME}','category': '{CATEGORYNAME}', 'brand': 'asdfsfdf', 'variant': '', 'price': '{UNITPRICE}', 'coupon': '', 'quantity': {QUANTITY}});


For more info see here
9 năm cách đây
I am assuming you already have a Google Analytics account and have your ID ready - Copy you ID (something like UA-XXXXX)

Go to: Administration > Content Management > Widgets > click on "configure" for Google Analytics widget

Now, paste your ID

Click SAVE

Go back to widget page.

Google Analytics widget (right next to "configure") - You will see "EDIT"

Click "Edit"

Check "Is Acive"

Click "Update"

Done !!!


For more information, check the documentation:
http://docs.nopcommerce.com/display/nc/Google+Analytics+or+Universal+Analytics+Plugin
9 năm cách đây
Has anyone gotten the ecommerce analytics to work with the one page checkout?  I am using Universal Analytics, and used the "pre-configure" button for the plugin.  I've got the proper ID set, and have also made sure the ecommerce stuff is enabled in Analytics.  However, Google keeps warning me that no ecommerce data is being sent, despite having orders go through.

I'm assuming that it works when one-page checkout is enabled.  The plugin looks for the controller to equal "checkout" and the action to equal "completed".  Does the one page checkout process use that action?  I also have the order completed page disabled in the settings.
9 năm cách đây
ron.richardson wrote:
Has anyone gotten the ecommerce analytics to work with the one page checkout?  I am using Universal Analytics, and used the "pre-configure" button for the plugin.  I've got the proper ID set, and have also made sure the ecommerce stuff is enabled in Analytics.  However, Google keeps warning me that no ecommerce data is being sent, despite having orders go through.

I'm assuming that it works when one-page checkout is enabled.  The plugin looks for the controller to equal "checkout" and the action to equal "completed".  Does the one page checkout process use that action?  I also have the order completed page disabled in the settings.



Everything works for me with onepagecheckout , see   here
9 năm cách đây
I have gotten the tracking working now.  It wasn't an issue with one page checkout, but rather an issue that was reported here:  https://www.nopcommerce.com/boards/t/32713/analytics-ecommerce.aspx.

Disabling the order completed step never allows the ecommerce code to be executed.
7 năm cách đây
First login into your website Admin panel
1) Go to install plugins from here Admin >>> Configuration >>> Plugins http://www.smarteteach.com/Admin/Plugin/List
2) Next move to Admin >>> Content Management >>> Widgets where you will see your installed google analytics widgets, now here click on configure button to add your Google Analytics code script. Finally, hit save button.

GA Code Script
<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','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-00000000-1', 'auto');
  ga('send', 'pageview');
</script>


For More Info click here
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.