Problem/Motivation

Varbase is using Google Analytics version 8.x-3.1
This only supports legacy UA- properties. New sites use the new GA4 and as far as I can tell, you can't create a legacy version on new sites added to google analytics

Proposed resolution

Update to https://www.drupal.org/project/google_analytics/releases/4.0.0
This is stable and supports the new GA4 projects.

  • Change drupal/google_analytics to ~3.0 || ~4.0 in the composer.json file

Allowing sites to be upgraded to ~4.0 and keep allowing the use of old ~3.0 ( only to ease the automatic upgrade config steps)

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.12, varbase_seo-9.0.8, varbase-10.0.0-alpha1, varbase_seo-10.0.0-alpha1

Varbase update type:

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

Comments

tresero created an issue. See original summary.

rajab natshah’s picture

Thanks Jon, for filing this issue
It's a valid point

Meet the next generation of Google Analytics

The Google Analytics module had the 4.0.0 stable release.

The options are:

Not sure if Varbase will keep using the universal as ^the default config ( option )

Google Analytics Reports and Google Analytics

Testing that can be the having the following in the root project composer.json file:

    "drupal/google_analytics": "4.0.2 as 3.1.0",
    "drupal/google_analytics_reports": "4.0.0-alpha2 as 3.0.0"
rajab natshah’s picture

Project: Varbase - The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) » Varbase SEO
Version: 9.0.4 » 9.0.x-dev

Moving this issue to Varbase SEO

jedgar1mx’s picture

Looks like Google announce the EOL for universal analytics to be July 1, 2023.

rajab natshah’s picture

Assigned: Unassigned » rajab natshah
rajab natshah’s picture

Title: Google Analytics Module - Deprecate » Switch Google Analytics Module from ~3.0 to ~4.0
Version: 9.0.x-dev » 10.0.x-dev
rajab natshah’s picture

Title: Switch Google Analytics Module from ~3.0 to ~4.0 » Switch Google Analytics Module from ~3.0 to ~4.0 on the Varbase SEO 10.0.x branch
Issue summary: View changes

  • Rajab Natshah committed c54ddaa8 on 10.0.x
    Issue #3262760: Switch Google Analytics Module from ~3.0 to ~4.0 on the...
rajab natshah’s picture

Version: 10.0.x-dev » 9.0.x-dev
Issue summary: View changes

Feels that it's better to manage Google Analytics ~3.0 || ~4.0
In the Varbase SEO 9.0.x branch too for easier upgrade stage.

rajab natshah’s picture

Title: Switch Google Analytics Module from ~3.0 to ~4.0 on the Varbase SEO 10.0.x branch » Switch Google Analytics Module from ~3.0 to ~4.0
rajab natshah’s picture

Issue summary: View changes

  • Rajab Natshah committed 2f44bf01 on 10.0.x
    Issue #3262760: Switch Google Analytics Module from ~3.0 to ~4.0
    

  • Rajab Natshah committed 7e1f77b4 on 9.0.x
    Issue #3262760: Switch Google Analytics Module from ~3.0 to ~4.0
    
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-9.0.12, +varbase_seo-9.0.8, +varbase-10.0.0-alpha1, +varbase_seo-10.0.0-alpha1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase_seo-9.0.8

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.0.12

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes