Results 1 to 10 of 61

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: GA-4 Analytics [Support Thread]

    Nicely done @carlwhat!
    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.

  2. #2
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    Yes, thanks.

    There I don't search the problem.
    I have set the index as the last one that I have in my config.core.php

    have a nice day
    Borek

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: GA-4 Analytics [Support Thread]

    GA4 Analytics v1.2.0 is now available: https://www.zen-cart.com/downloads.php?do=file&id=2368

    This release contains corrections for the following GitHub issues:

    #11: Correct determination of products' information pages.
    #12: Don't include a view_item event for invalid products.
    #13: Need to load after currencies are instantiated, corrects PHP warning.
    #14: Enable analytics to use either GA4 (gtag.js) or GTM (gtm.js) reporting.
    #15: Don't log a PHP Warning if the required notification is missing.
    #16: Include user_id for GTM reporting and enable site-specific customizations.
    #17: Correct misspelling of item_name parameter for shopping-cart based items.

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

    Default Re: GA-4 Analytics [Support Thread]

    GA-4 Analytics v1.2.1 is now available for download.

    This release contains changes associated with the following GitHub issues:

    #18: Correct MySQL error (products_all) when Bootstrap template is in use.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: GA-4 Analytics [Support Thread]

    Sorry for the churn, but v1.2.2 is now available for download.

    This version corrects unwanted PHP warnings on the featured_products page.

  6. #6
    Join Date
    Jun 2023
    Location
    Melbourne
    Posts
    2
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    I have installed the GA-4 Analytics update to Zen Cart 1.5.6c however I get an error in the log and Web site doesn't load

    PHP Parse error: syntax error, unexpected '?' in /includes/classes/observers/class.ga4_analytics.php on line 309

    case FILENAME_SPECIALS:
    global $specials, $listing;

    $products = $listing ?? $specials ?? []; <<line 309
    if (empty($products)) {
    break;
    }
    $_SESSION['ga4_analytics'][] = [
    'event' => 'view_item_list',
    'parameters' => [
    'item_list_name' => GA4_ANALYTICS_SPECIALS,
    'items' => $this->getListingItems($products),
    ]
    ];
    break;


    I have put the G- code in the GA4 Analytic admin field.

    Any ideas?

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: GA-4 Analytics [Support Thread]

    You need to update the site to PHP 7.0 at a minimum. The null-coalesce operator (??) wasn't available until that PHP version.

  8. #8
    Join Date
    Jun 2023
    Location
    Melbourne
    Posts
    2
    Plugin Contributions
    0

    Default Re: GA-4 Analytics [Support Thread]

    Thought it might be something like that, but don't like updating PHP unless instructed.

    Thank you

    Updated Php version on server to 7 however I though I would see the change appear on the web site admin under the version menu?

    But it still has PHP Version 5.6.40

    Does it take a while to filter through?

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: GA-4 Analytics [Support Thread]

    @GordoTheFlash Check with your hoster. The time varies between "instantaneous" and "you must wait for a migration to another server."
    Also, double check after some time has passed because you may be looking at a cached page.
    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.

 

 

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