It would be nice to be able to trigger GA Stats data retrieval via Drush.
It would also be nice to be able to generate GA Stats-like data for development when struggling with Google authentication, or lacking Internet access.
The forthcoming patch has a little bit of scope issues, in that it snipes at a couple minor coding standards issues, adds a bit of watchdog, makes Views integration work properly by default, and removes the ga_stats_data cache--I saw nothing using said cache, so it appears it was operating as a simple lock to prevent grabbing data on every cron run. I've replaced that with a lower impact Drupal variable in the fashion of cron_last.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2032687-2-ga_stats-drush_integration.patch | 8.55 KB | Grayside |
#1 | 2032687-1-ga_stats-drush_integration.patch | 8.55 KB | Grayside |
Comments
Comment #1
Grayside CreditAttribution: Grayside commentedIt is worth noting that I was able to build a view against the data generated by this patch, but since I don't have GA login working yet, I have not properly tested the refactor around the data retrieval.
Comment #2
Grayside CreditAttribution: Grayside commentedWhitespace issues and a logic fix.
Comment #3
Grayside CreditAttribution: Grayside commentedFixed as part of #2122793: The Uber Issue: General refactor for goodness