Page 10 of 11 FirstFirst ... 891011 LastLast
Results 91 to 100 of 108
  1. #91
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

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

  2. #92
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default 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.


    Code:
    <!-- 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 -->
    Last edited by chadlly2003; 17 Feb 2019 at 04:26 AM.

  3. #93
    Join Date
    Nov 2005
    Location
    France
    Posts
    576
    Plugin Contributions
    8

    Default 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?

  4. #94
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by strelitzia View Post
    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!

  5. #95
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    505
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

    I am interested as well.

  6. #96
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

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

  7. #97
    Join Date
    Dec 2017
    Location
    USA
    Posts
    2
    Plugin Contributions
    0

    Default 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!

  8. #98
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    505
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by cbooch View Post
    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. :)

  9. #99
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default 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.

  10. #100
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,105
    Plugin Contributions
    11

    Default 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
    Code:
    </head><?php // NOTE: Blank line following is intended: ?>
    Just insert the code above the </head>

 

 
Page 10 of 11 FirstFirst ... 891011 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 3 Oct 2013, 10:36 PM
  2. Ecommerce Tracking code for Google Analytics
    By Endre in forum General Questions
    Replies: 7
    Last Post: 14 Nov 2012, 03:20 PM
  3. MailChimp Ecommerce MC360 tracking?
    By irishshopper in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2010, 11:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR