Results 1 to 10 of 61

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,893
    Plugin Contributions
    96

    Default Re: GA-4 Analytics [Support Thread]

    v2.0.1 of GA4 Analytics is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2368

    This version correctly update various configuration settings when upgrading from a non-encapsulated version of the plugin (#28).

  2. #2
    Join Date
    Jun 2011
    Posts
    85
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    I'm getting this on a new install of ZC 2.1

    --> PHP Warning: Undefined array key "products_name" in xxxx zc_plugins/GA4/v2.0.1/catalog/includes/classes/observers/ga4AnalyticsObserver.php on line 741.

    I'm going to turn it off.. I see where it's supposed to get it on line 741.. not sure why it is not getting it.

  3. #3
    Join Date
    Jun 2011
    Posts
    85
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    Same Problem with GitHub Version
    Last edited by brian70809; 16 Feb 2025 at 01:40 AM. Reason: I was wrong

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,893
    Plugin Contributions
    96

    Default Re: GA-4 Analytics [Support Thread]

    Quote Originally Posted by brian70809 View Post
    I'm getting this on a new install of ZC 2.1

    --> PHP Warning: Undefined array key "products_name" in xxxx zc_plugins/GA4/v2.0.1/catalog/includes/classes/observers/ga4AnalyticsObserver.php on line 741.

    I'm going to turn it off.. I see where it's supposed to get it on line 741.. not sure why it is not getting it.
    A copy of the full log with the backtrace information would help a lot, since it's the calling path that's introduced the issue.

  5. #5
    Join Date
    Feb 2023
    Posts
    2
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    Quote Originally Posted by lat9 View Post
    A copy of the full log with the backtrace information would help a lot, since it's the calling path that's introduced the issue.
    #0 /zc_plugins/GA4/v2.0.1/catalog/includes/classes/observers/ga4AnalyticsObserver.php(741): zen_debug_error_handler()
    #1 /zc_plugins/GA4/v2.0.1/catalog/includes/classes/observers/ga4AnalyticsObserver.php(238): ga4AnalyticsObserver->getItemInfo()
    #2 /includes/classes/traits/NotifierManager.php(106): ga4AnalyticsObserver->update()
    #3 /includes/templates/wokiee/common/tpl_main_page.php(241): base->notify()
    #4 /index.php(94): require('/home/afiwwe6sf...')
    --> PHP Warning: Undefined array key "products_name" in /zc_plugins/GA4/v2.0.1/catalog/includes/classes/observers/ga4AnalyticsObserver.php on line 741.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,514
    Plugin Contributions
    126

    Default Re: GA-4 Analytics [Support Thread]

    This bug has already been reported here:

    https://github.com/lat9/ga4-analytics/issues/29
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Apr 2011
    Posts
    584
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    ZC 2.0.1 with GA-4 analytics version 1.2.4

    Not sure if it normal behavior or a bug but when looking the page source of main page, it appears the script is being loaded 2 times. Site is at www.royal-fleur(dot)com for reference

    Code:
    <html dir="ltr" lang="en" prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
      <head>
      <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-JQL28SP4BW"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-JQL28SP4BW');
    </script>
     <meta charset="utf-8">
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-JQL28SP4BW"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-JQL28SP4BW');
    </script>
        <link rel="preload" href="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous" as="script">
        <link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous" as="style">
    Is this normal behavior? If not how can i fix it?

    Would upgrading to the latest version help? I am on ZC 2.0.1 so it may not be compatible.

    Thank you for your time and help

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,690
    Plugin Contributions
    11

    Default Re: GA-4 Analytics [Support Thread]

    You'll need to find which of the Google Tag Manager IDs belongs with the current site and remove the non-current.

    While it probably doesn't affect site performance, Google does not recommend having more than one gtag.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Easy Google Analytics - Support
    By kamion in forum All Other Contributions/Addons
    Replies: 42
    Last Post: 16 Feb 2026, 07:05 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  3. Simple Google Analytics - Support
    By cuda in forum All Other Contributions/Addons
    Replies: 2160
    Last Post: 22 Dec 2020, 05:38 AM
  4. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM

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