Problem/Motivation
Currently the module permits getting Google Analytics API data from only one Google View at a time.
This issue is for adding more than one Google View to configuration.
Proposed resolution
1. Change the Google Views IDs field to allow more than one Google View.
2. Add queries to Google from Drupal for the 2nd, 3rd, etc Views that were added in the admin form.
3. Save the data from the 2nd, 3rd, etc Views in the Drupal database.
4. Change the Top Twenty Results to Top Results for View 1, Top Results for View 2, etc. for proof of concept.
(screen shot to come)
Remaining tasks
All.
User interface changes
The Google Views field will now be capable of accessing more than one Google View at a time.
API changes
1. An update hook for existing installations, so the Google View already in configuration is not lost when the field is changed.
2. Extra queries to Google will be added depending on whether there is more than one Google View specified in the configuration.
Data model changes
(Database or configuration data changes that would make stored data on an existing site incompatible with the site's updated codebase, including changes to hook_schema(), configuration schema or keys, or the expected format of stored data, etc.)
Configuration data will change, but custom data should stay the same. The custom tables store only the data. They don't care what path/View the data refers to.
Comment | File | Size | Author |
---|---|---|---|
google-views.png | 55.88 KB | esod |
Comments
Comment #5
esod CreditAttribution: esod at Memorial Sloan Kettering Cancer Center commentedStill not working, but getting close.
Comment #6
tepelena CreditAttribution: tepelena commentedGood to know. It's not working in my setup as well. When I add the GAC field in views it does nothing.
Comment #8
esod CreditAttribution: esod at Memorial Sloan Kettering Cancer Center commentedHi @tapelena. Just saw your message. This is branch is still under development. 8.x-3.x-alpha10 works well for one Google Profile id. I'm attempting here to allow for multiples profile ids.
Comment #52
kaszarobertBecause of the Universal Analytics shutdown, version 8.x-3.x is no longer supported.
In case someone needs a feature like this, please open an issue or MR on the latest version.