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).
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).
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.
Same Problem with GitHub Version
Last edited by brian70809; 16 Feb 2025 at 01:40 AM. Reason: I was wrong
#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.