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

jtbayly’s picture

Does ga_stats have the same fundamental difficulty? Let's see how they did it.
-Joseph

grendzy’s picture

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

Plazik’s picture

Component: Views module » Reports module
Issue summary: View changes
Status: Active » Closed (duplicate)