#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.
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.
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
Is this normal behavior? If not how can i fix it?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">
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
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.
What Google exactly says is:
keep the number of tags [...] as lean as possible
Most browsers will not open more than four to eight HTTP requests to a single domain at a time. If you have a high number of tags on the same domain firing under the same conditions, tags will only fire within this browser limitation.
https://support.google.com/tagmanage...72488?hl=en-GB
roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/
Thank you both for the prompt assist.
I am only using the G4-Analytics plug in.
As you can see in the page source, the gtag id is the same in both location.
I made a test ( maybe pointless) but oddly if i change the gtag ID in the G4 Anlytic admin setting, the ID changes in both places.Code:<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>
I may just uninstall G4-anyltics to see if the script is still loaded. Not sure why the script would be loaded twice on the same page
Last edited by nicksab; 3 Apr 2025 at 08:42 PM.