Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    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.

  2. #12
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    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.

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    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.

  4. #14

    Default Re: GA-4 Analytics [Support Thread]

    Quote Originally Posted by lat9 View Post
    Re-creating the support thread, since the original one "went missing".

    The GA-4 Analytics plugin (available at https://www.zen-cart.com/downloads.php?do=file&id=2368) can be used on Zen Cart sites using 1.5.6b through 1.5.8 without issue. For 1.5.6b installations (or non-standard/older templates), be sure to read the readme since there are a couple of notifications that must be added to template files for the GA-4 Analytics' observer class to do its thing.

    Other than that, no core file overwrites, just a couple of configuration settings in your admin.
    I reviewed the readme.html but it doesn't mention older versions. How does one install this on 1.5.5f?
    Case Badges by Techiant

  5. #15
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: GA-4 Analytics [Support Thread]

    Quote Originally Posted by Techiant View Post
    I reviewed the readme.html but it doesn't mention older versions. How does one install this on 1.5.5f?
    One doesn't! The plugin supports zc156 and later.

  6. #16

    Default Re: GA-4 Analytics [Support Thread]

    Is there another plug in that can handle GA4? Or a manual way to insert code in a header file?
    Last edited by Techiant; 23 Jun 2023 at 07:03 PM.
    Case Badges by Techiant

  7. #17
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: GA-4 Analytics [Support Thread]

    The phrase "The plugin supports zc156 and later" means the plugin relies on internal Zen Cart code changes (often but not exclusively notifiers) that are only present in a specific release or higher.

    1.5.5 is quite old and only runs on long-deprecated versions of PHP that are vulnerable to attack. You need to upgrade.

    https://docs.zen-cart.com/user/upgrading/
    That Software Guy. My Store: Zen Cart Modifications
    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.

  8. #18
    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?

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    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.

  10. #20
    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?

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  2. Easy Google Analytics - Support
    By kamion in forum All Other Contributions/Addons
    Replies: 41
    Last Post: 17 Nov 2022, 03:18 PM
  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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR