Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
A views query plugin has been added to the 7.x-3.x branch. Since it queries GA directly, it doesn't have access to data in Drupal.
Investigate the possibility of creating a Views relationship with nodes, to allow Drupal fields to be included in a view. This will be challenging because field queries use SQL, and GA queries use a REST / XML API.
Comments
Comment #1
jtbayly CreditAttribution: jtbayly commentedDoes ga_stats have the same fundamental difficulty? Let's see how they did it.
-Joseph
Comment #2
grendzy CreditAttribution: grendzy commentedga_stats, ga_importer, and google_analytics_counter all use similar approaches: Run cron to periodically import
ga:pageviews
into an SQL table. The SQL table is then JOIN'ed for Views relationships.Because this module's Views plugin queries Google directly, it can offer much broader support for different metrics, dimensions and filters. The downside is that at least for now, we don't know how to make relationships to SQL-land.
Comment #3
Plazik CreditAttribution: Plazik as a volunteer commentedFurther conversations will be in #1837230: Node, User, Organic Groups and others Entities relationships.