Forums / General Questions / Google Ecommerce Tracking

Google Ecommerce Tracking

Views: 37,009

Results 81 to 100 of 108
30 May 2018, 11:44 AM
#81
adrian_cioc_rlan avatar

adrian_cioc_rlan

New Zenner

Join Date:
May 2016
Location:
Bucharest
Posts:
48
Plugin Contributions:
0

Google Ecommerce Tracking

Hi,

I'm experiencing 10 to 30 percent of the total number of transactions not appearing in Google Analytics on a daily basis, I'm now using this plugin on a v1.5.1 version, can anyone tell why could this be happening. I canceled all my tag manager tags to test and still some orders not showing up. Could the Google Tag manager code itself be the problem interfering with EC Analytics plug? Has anyone had this problem?

Also, Tag assistant says that GA "Code found outside of <head> tag"

Is yours saying the same thing?

Thanks

30 May 2018, 1:31 PM
#82
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Google Ecommerce Tracking

Adrian Ciocîrlan:

I'm now using this plugin on a v1.5.1 version
This plugin is for 1.5.4 and higher. 1.5.1 is completely outdated and should not be live anymore anywhere. You should upgrade to Zen Cart 1.5.5
Adrian Ciocîrlan:

Could the Google Tag manager code itself be the problem interfering with EC Analytics plug?
As stated in the readme there should be NO additional GA code anywhere in your Zen Cart files when using this plugin.

31 May 2018, 7:25 PM
#83
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Google Ecommerce Tracking

@webchills, i'm getting ready to implement this plugin.... quick question prior to proceeding:

currently, the website makes use the global site tag - google analytics using the gtag.js library; as well as the google tag manager using the gtm.js library.

i'm guessing i need to remove the gtag.js libary; but what about the gtm.js?

thanks in advance!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

3 Jun 2018, 3:03 PM
#84
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Google Ecommerce Tracking

 function getCatString($id) {
  global $db, $cPath ;
  $masterCat = zen_get_categories_name_from_product($id) ;
  $catTxt = '';
     $i = 0 ; $flag = 0 ;
        if(isset($cPath)) {
            $p = explode('_',$cPath) ;
            while ($i < count($p)) {
                $the_categories_name= $db->Execute("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id= '" . $p[$i] . "' and language_id= '" . $_SESSION['languages_id'] . "'");
                if ($masterCat ==  $the_categories_name->fields['categories_name'])  {$flag = 1 ;}
                     
            $i++ ;        
            } 
        $catTxt = substr($catTxt, 1);
        }     
  return ($flag != 1 ) ? $masterCat:$catTxt;      
// return $catTxt ;    
 } 

this is in:

NEW FILES/includes/classes/observers/class.ec_analytics.php

$catTxt never gets changed to anything. seems like a bug to me.........

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

14 Aug 2018, 8:48 PM
#85
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: Google Ecommerce Tracking

I'm getting some similar data in my analytics account (eg /all-parts/ 1200 view as well as /all-parts 700 views) Notice one has a trailing "/". The one with a trailing "/" also allows for a drilldown in our Google Analytics profile while the other does not allow such.

Upon digging into the problem, I did notice that Easy GA is still loaded in the admin but set as disabled. Is this sufficient, could it be causing part of the aforementioned issue, do I need to delete it altogether?

ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

28 Aug 2018, 2:56 PM
#86
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Update: I've uninstalled the plugin Easy GA.

In google analytics>behavior>site behavior>content drill down....I get multiple line items for the same page. The difference is that one line item has a trailing slash while the other doesn't. In regards to the remaining line items below, they are from tests I performed checking case sensitive variations for that page. All variations were tracked individually in GA. For example:

/Dirt-Bike-Parts 154 page views Content drilldown does not allow for seeing the subfolders
/Dirt-Bike-Parts/ 723 page views The listing with trailing slash allows content drilldown to display subfolders each user visited
/dirt-Bike-parts 1 page views Logged by GA. This was a test I did changing up capitalization
/dirt-Bike-parts/ 1 page views Logged by GA. This was a test I did changing up capitalization and adding the trailing slash.

I would expect all 4 of the above to be captured as a single output in Google Analytics as they are the same page and provide the content drill down. Does anyone have an idea what the cause or solution may be?

ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

10 Dec 2018, 3:52 PM
#87
bitg avatar

bitg

New Zenner

Join Date:
Nov 2018
Posts:
9
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Hello,

I've been using this plugin for Google Analytics. I'm tracking visitors but GA is not getting any Ecommerce/sales data. Any ideas?

10 Feb 2019, 3:45 PM
#88
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Hello,

I am looking for a means to quantify "Google pay per click" performance using as they say "Adwords conversion tracking".

Is this Google Ecommerce Tracking module right for this task?

Is it compatible with Zen Cart 1.5.5e?

Thank you for your time in advance.

10 Feb 2019, 8:23 PM
#89
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Hello again,

I installed this module as Read me text file says.

How to learn that it is working?

I can not see any new Menus in Zen Cart Admin, or there should not be any?

How to verify that installation was correct?

I turned ON E-Commerce setting in GA.

Attachment 18329

Please enlighten newbie. :smile:

10 Feb 2019, 8:33 PM
#90
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Google Ecommerce Tracking

DivaVocals:

Installed like a DREAM.. Works like a charm!!! ... thank you!!!)

Can somebody explain, please, how to check if installation was correct and how this module works.

Should anything be done in Zen Cart Admin (I do not see any new menus)?

I have Google analytics and Adwords campaign, but I am not sure how to test system before I "Enable Ad"?

Should I buy my own product via click on Ad?

Thank you. :smile:

16 Feb 2019, 1:24 PM
#91
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Google Ecommerce Tracking

It appears this Thread is outdated.
Nobody responds...
Let's move on. :smile:

17 Feb 2019, 3:22 AM
#92
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
826
Plugin Contributions:
0

Re: Google Ecommerce Tracking

This is to help people having trouble with setting up google analytics. Not sure if it will help but it should give you a general idea of how to set it up and what direction to go in

Steps for setting this up Google Ecommerce Tracking

My settings for Easy Google Analytics plugin (configuration/easy google Analytics)

Analytics Enabled: Enabled
Plugin Version 2.4.9
Analytics Account UA-xxxxxxxx-1
Target Address customers
Affiliation
Use SKU code products_id
AdWords Conversion Tracking Active Yes
AdWords Conversion Tracking Number xxxxxx
Google AdWords Language en_US
Analytics Tracking Type universal
Custom Tracking JS Enabled Enable
Google Conversion Label xxxxxx
Custom Tracking JS
Demographics and Interest Reports Enabled

**For this module to work correctly you will need to
**

  1. add your Google Analytics account information in the plugin
  2. create a conversion tag in AdWords and add it to the plugin.

** Example of my conversion tag settings in AdWords**
• Category: Purchase/Sale
• Conversion name: Conversion
• Value Use different values. If there's no value, use $0.
• Source
• Not editable Website
• Count One conversion
• Conversion window 30 days
• View-through window 1 day
• Include in "Conversions" Yes
• Attribution model Time decay

Once this is complete go to google analytics and see if you are getting traffic. This should tell you if the module is working correctly.

If you want to set up remarketing you will need to add this to your common footer. (you may have to make some minor modifications on the script below to work correctly.) pending on what you consider a conversion. Also there are some modifications you will need to make in adwords in order for the remaketing to work correctly.

<!-- dynamic remarketing -->

<script>
  if(window.location.pathname == "/") {
    var google_tag_params = {
      ecomm_pagetype: 'home'
    };
  }else if(jQuery('#indexBody').length>0) {
    var google_tag_params = {
      ecomm_pagetype: 'category'
    };
  }else if(jQuery('#productinfoBody').length>0) {
    var id = window.location.href.split('products_id=')[1];

    var price =parseFloat(jQuery('.productSpecialPrice:first').text().replace(/[^0-9.]/g,''));
    var google_tag_params = {
      ecomm_prodid: id,
      ecomm_pagetype: 'product',
      ecomm_totalvalue: price
    };
  }else if(jQuery('#shoppingcartBody').length > 0) {
    var cart_ids = new Array();
    jQuery('[name="products_id[]"]').each(function(){
      cart_ids.push(jQuery(this).val())
    })  
    var price = parseFloat(jQuery('#cartSubTotal .price').text().replace(/[^0-9.]/g,''));
    var google_tag_params = {
      ecomm_prodid: cart_ids,
      ecomm_pagetype: 'cart',
      ecomm_totalvalue: price
    };
  }else{
    var google_tag_params = {
      ecomm_pagetype: 'other'
    };
  }
  </script>
<script>
window.addEventListener('load',function(){
    try {
        ga('set', 'dimension1', window.google_tag_params.ecomm_prodid.toString());
    } catch (e) {}
    try {
        ga('set', 'dimension2', window.google_tag_params.ecomm_pagetype.toString()); 
    } catch (e) {}
    try {
        ga('set', 'dimension3', window.google_tag_params.ecomm_totalvalue.toString()); 
    } catch (e) {}
    ga('send', 'event', 'page', 'visit', window.google_tag_params.ecomm_pagetype.toString(), {
        'nonInteraction': 1
    });
   })
</script>

<!-- eof dynamic remarketing -->
25 Jul 2020, 2:45 PM
#93
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Google Ecommerce Tracking

I've found that this mod breaks One-page checkout mod (https://www.zen-cart.com/downloads.php?do=file&id=2095).
When this is installed I only get the default zen cart multiple page checkout process.
I see that you added code specific to FEC/COWOA. Is it possible to update it for lat9's OPC?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

18 Aug 2021, 11:08 PM
#94
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
491
Plugin Contributions:
0

Re: Google Ecommerce Tracking

strelitzia:

I've found that this mod breaks One-page checkout mod (https://www.zen-cart.com/downloads.php?do=file&id=2095).
When this is installed I only get the default zen cart multiple page checkout process.
I see that you added code specific to FEC/COWOA. Is it possible to update it for lat9's OPC?

Did you ever find solution for this?

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

19 Aug 2021, 12:56 PM
#95
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Google Ecommerce Tracking

I am interested as well.

17 Sep 2021, 10:36 PM
#96
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Google Ecommerce Tracking

This thread looks pretty inactive, but I wondered if anyone has used this with Google's GA4.

Ellie Armsby

21 Oct 2021, 3:30 PM
#97
cbooch avatar

cbooch

New Zenner

Join Date:
Dec 2017
Location:
USA
Posts:
2
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Hey everyone - This post seems to be pretty dead as it relates to zc 1.5.1 which I'm currently stuck using for the next little while. I've been trying to get EC Analytics (v. 1.2.1) to successfully report sales data to our analytics account and I'm still seeing nothing. I've used Google Tag Assistant to analyze what's being sent to analytics and everything appears to be working as expected up to the point of Checkout Success. Once a user reaches that page, no tags are found, no page views are recorded and no events are fired. The last successful time any of that occurs is at Checkout Confirmation. My question is should the Checkout Success page have any tags or is it correct that it doesn't? I am using EC Analytics as designed and haven't made any modifications. None of my pages have any additional analytics tags anywhere. When looking for transactions inside of my analytics account, all I see is drop offs at the last step and no sessions with transactions. I'm racking my brains here. Any help or advice would be appreciated! Thank you!

27 Oct 2021, 10:31 AM
#98
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Google Ecommerce Tracking

cbooch:

as it relates to zc 1.5.1

I cannot comment on the EC part of this BUT if you are still using 1.5.1 you REALLY need to consider upgrading. The security measures added since that release are both significant and numerous. Just my 2 cents....

And yes, this thread seems to be dead. I could use a EC/Google Analytics for Dummies description myself. :)

3 Apr 2022, 7:41 PM
#99
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Google Ecommerce Tracking

Hello Team,

Below is most recent instruction (2022) for connecting Google Analytics to the ZenCart.

Can you, please, explain in what file and where in the file on ZenCart is should be inserted.

########################################################

To connect Google Analytics to your website, choose 1 of the following methods that apply:

**Option 1: **Install a tracking ID through your hosting service or commerce platform
Sign in to your website builder, web hosting service, or commerce platform and paste your tracking ID into the analytics section.

UA-XXXXXX-1

Option 2: Install a tracking tag in your website code
Paste your tracking tag before the closing **</head> **tag on every page of your website you want to track.

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-638871-1"> </script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXX-1'); </script>

Thank you for your time in advance.

3 Apr 2022, 11:16 PM
#100
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Re: Google Ecommerce Tracking

As to Option 2, there is a html_header.php located in includes/templates/YOUR_TEMPLATE/common/

Near the end of that file, you'll see```

</head><?php // NOTE: Blank line following is intended: ?> ```Just insert the code above the </head>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com