Nothing wrong with the plugin except for page speed complaining of blocking time:
/gtag/js?id=G-JQL28SP4BW(www.googletagmanager.com) Main-Thread Blocking Time : 537 ms
URL
Google Tag Manager /gtag/js?id=G-JQL28SP4BW(www.googletagmanager.com)
Total CPU Time 1,563 ms
Script Evaluation 1,276 ms
Script Parse 276 ms
Is there away to reduce it? I am getting a score of 50 for mobile on pagespeed!
Thank you
Last edited by nicksab; 2 Dec 2024 at 04:22 AM.
v2.0.0 of GA4 Analytics is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2368
This version is released as a Zen Cart encapsulated plugin, supporting Zen Cart versions 2.1.0 and later. Thanks to @DrByte for doing the conversion to encapsulated.
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.