I love the idea of using Google analytics as a Views datasource
#760592: Integrate with Views so Views can use Google Analytics as a data source
I'm not sure yet, but having Google Analytics as a Views datasource may be the basis for caching all kinds of data too (from all different kinds of datasources(!).
I still have to test this, so don't regard this as a possibility yet, but as a thing that 'might' be possible.

What if for example:
I want to update the current number of pageviews for a node X from Google Analytics every night at 3:00 am.
I would start by looking at the Rules module.
Creating a Rule that executes a View every night at 3:00 am for example (let's call it View A).
With Views Bulk Operations I would execute another Rule per node (for View A) that stores the value it gets from Google Analytics in a field of node X.
Or if we want to cache separate pageview numbers per day:
Create a VBO Rule (that executes for every node from View A) that creates a new node of content type 'pageviews' with a date field and a pageviews field and a nodereference to the node X allowing me to generate a View for all 'pageview' nodes that noderef link to node X and showing the pageviews per day or adding them in a 'total' number and showing only that.

Rules and Views Bulk Operations would allow us to easily create solutions for very specific usecases without the need for creating various Google Analytics Reports submodules that scratch different itches (usecases).
At the base of all this is the Views integration for this Google Analytics Reports module
#760592: Integrate with Views so Views can use Google Analytics as a data source.

But as I said, these are just thoughts, I haven't made any proof of concepts yet.
I'm currently very busy, but in a month or so I will try to make a proof of concept (with other live View datasources if this module doesn't have one yet).

Ideas or other knowledge are very welcome.

Comments

Plazik’s picture

Version: 7.x-1.x-dev » 7.x-3.x-dev

Hello silkogelman.

Have you made proof of concepts?

silkogelman’s picture

Hi Plazik,

This was something I was interested in 4+ years ago.
If I remember correctly at the time I experimented with it, but came to the conclusion that I had to pursue other issues first.

I did not make a proof of concept, and at this moment in time I unfortunately can't put any time into that.
Its great to see Google Analytics data can now be used as a Views datasource though.
Have fun with that!

Plazik’s picture

Status: Active » Postponed

Ok, I've postponed it.