Add multiple Google Views

Created on 2 October 2018, about 6 years ago
Updated 10 July 2023, over 1 year ago

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.

πŸ“Œ Task
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States esod

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    Because 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.

Production build 0.71.5 2024