Broken/Missing handler in views Version: 4.0.0-beta1

Created on 1 February 2024, 11 months ago

Problem/Motivation

Previously installed version 8.x-3.1 stopped working after the upgrade to drupal 10+
I was asked to authenticate again. I was not able to do it with this version and upgraded to 4.0.0-beta1
Was able to follow instructions here: https://developers.google.com/analytics/devguides/reporting/data/v1/quic...
complete the authentication.
Imported fields.
Previous version had over 500 fields imported. This version only imported a 287 fields
When i go to the GA reports views, I have a lot of fields with broken/missing handler
Am I missing something?
Do I need to figure out what fields work to replace the fields that are missing (fields with different names, but kind of fitting in a way)?
Do I have missing relationships?

Top Sources view is still requiring authentication. Even though the account is authenticated.

Steps to reproduce

Proposed resolution

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

4.0

Component

All modules

Created by

🇺🇸United States vlyalko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vlyalko
  • 🇺🇸United States vlyalko

    The issues is partially resolved.
    I just had to uninstall and install back the module.
    Update broken/missing fields in our custom GA report views and most of the reports are working and functioning as expected.

    The only remaining issue is that Top source view, which is using following fields, which did not have broken/missing handler issues:

    Attribution: Source (Source)
    Attribution: Medium
    Session: Sessions (Sessions)

    This report still saying that
    Data from Google Analytics cannot be retrieved. You must authenticate your Google Analytics account to see these reports. Click here to configure Google Analytics authentication to your site.

    You must have administrator permissions on your Google Analytics and your Varbase site to do this. If you don't have permission, please contact your site administrator.

    This is strange, becasue when I am clicking on the link to to configure Google Analytics authentication to your site, it is obviously already configured. Otherwise, the rest of the view displays would not work and woulfd not be able to retrieve data fromGA reports API.

    Any recommendations?

  • 🇳🇱Netherlands jurriaanroelofs

    I had the same problem and the root cause was a bug with field imports, you can ensure you import all fields and keep your views working correctly by reinstalling after applying my patch:

    https://www.drupal.org/project/google_analytics_reports/issues/3483408 🐛 Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'keyEvents:viewed_pricing_page' for key 'PRIMARY': INSERT INTO "google_analytics_reports_fields" RTBC

Production build 0.71.5 2024