11 years agoImplements downloads counts (for dataset resources) and fixes an issue with 'All' records.
Ross Jones []
Implements downloads counts (for dataset resources) and fixes an issue with 'All' records.

- Fetches the data for downloads (either direct or cached) from when a user clicked on a
Download button. We lookup the resource for this url (based on .url or .cache_url) and
then associate the download count with the package it belongs to.
- Fixes a bug (#211) where the All records are deleted for every url, even if that url was
not fetched (and therefore won't get a new All record).

11 years agoOnly show the months for Downloads that we have
Ross Jones []
Only show the months for Downloads that we have

11 years agoMinor tweaks
Ross Jones []
Minor tweaks

11 years agoMinor tweak to naming
Ross Jones []
Minor tweak to naming

11 years agoUpdate to handle missing downloads data
Ross Jones []
Update to handle missing downloads data

11 years agoError check for potentially missing data
Ross Jones []
Error check for potentially missing data

11 years agoMake sure we total the vals for 'All' rather than just duplicate the entry
Ross Jones []
Make sure we total the vals for 'All' rather than just duplicate the entry

11 years agoRemove write to stdout
Ross Jones []
Remove write to stdout

11 years agoAdds the ability to fetch information on download events
Ross Jones []
Adds the ability to fetch information on download events

11 years agoForce len in avg calc to be a float too
Ross Jones []
Force len in avg calc to be a float too

11 years agoChange bounce calculation to use visitBounceRate rather than calculated
Ross Jones []
Change bounce calculation to use visitBounceRate rather than calculated

11 years agoUpdated count of deleted records
Ross Jones []
Updated count of deleted records

11 years agoTypoe
Ross Jones []
Typoe

11 years agoMinor tweak to see what is going on with delete()
Ross Jones []
Minor tweak to see what is going on with delete()

11 years agoUpdated with more logging
Ross Jones []
Updated with more logging

11 years agoFixing two bugs in one, making sure All are deleted as well as period and fixing a string concat problem
Ross Jones []
Fixing two bugs in one, making sure All are deleted as well as period and fixing a string concat problem

11 years agoModified model for delete() to check != 'All' instead of 'all'
Ross Jones []
Modified model for delete() to check != 'All' instead of 'all'

11 years agoTemplate fix for broken publisher links
Ross Jones []
Template fix for broken publisher links

11 years agoReverted previous change - I found a better way to do the css in DGU.
David Read []
Reverted previous change - I found a better way to do the css in DGU.

11 years agoAdd in <hr> to box titles, in line with DGU style change
David Read []
Add in <hr> to box titles, in line with DGU style change

11 years agoMerge branch 'master' of github.com:datagovuk/ckanext-ga-report
David Read []
Merge branch 'master' of github.com:datagovuk/ckanext-ga-report

11 years agoAvoid problem when testing.
David Read []
Avoid problem when testing.

11 years agoMake sure that the url normalization for social info takes the correct data
Ross Jones []
Make sure that the url normalization for social info takes the correct data

11 years agoMake sure clicking publishers carries the current month across
Ross Jones []
Make sure clicking publishers carries the current month across

11 years agoChange the entry for the current month to include the date that reports are available to.
Ross Jones []
Change the entry for the current month to include the date that reports are available to.

- Requires a migration
alter table ga_stat add column period_complete_day text;
- Makes sure that GA_Stat entries have the period_complete_day set
- Cleans up the template and moves the drop-down to the util template

11 years agoToken is now referenced in the config, making it easier for the gov_daily script to kick off downloads.
David Read []
Token is now referenced in the config, making it easier for the gov_daily script to kick off downloads.

11 years agoAdjust popularity score to take account of number of days in the month.
David Read []
Adjust popularity score to take account of number of days in the month.

11 years agoActually returning the score instead of 0
Ross Jones []
Actually returning the score instead of 0

11 years agoMerge branch 'master' of github.com:datagovuk/ckanext-ga-report
Ross Jones []
Merge branch 'master' of github.com:datagovuk/ckanext-ga-report

11 years agoAdded new method to get a recent score for a dataset
Ross Jones []
Added new method to get a recent score for a dataset

11 years agoSort the dataset report by views, since we only display that now.
David Read []
Sort the dataset report by views, since we only display that now.

11 years agoChanges to fix some issues around bounces and presentation
Ross Jones []
Changes to fix some issues around bounces and presentation

11 years agoFixed merge conflict
Ross Jones []
Fixed merge conflict

11 years agoChanged to pageviews instead of unique pageviews
Ross Jones []
Changed to pageviews instead of unique pageviews

11 years agoImproved bounce rate stuff.
David Read []
Improved bounce rate stuff.

11 years agoMerge branch 'master' of github.com:datagovuk/ckanext-ga-report
David Read []
Merge branch 'master' of github.com:datagovuk/ckanext-ga-report

11 years agoFix display of publisher in Featured Dataset.
David Read []
Fix display of publisher in Featured Dataset.

11 years agoChecking for duplicate "All" stats
Ross Jones []
Checking for duplicate "All" stats

11 years agoMerge branch 'master' of github.com:datagovuk/ckanext-ga-report
Ross Jones []
Merge branch 'master' of github.com:datagovuk/ckanext-ga-report

11 years agoHandling duplicate urls in ga_url processing
Ross Jones []
Handling duplicate urls in ga_url processing

11 years agomerge
David Read []
merge

11 years agoTidy logging.
David Read []
Tidy logging.

11 years agoMerge branch 'master' of github.com:datagovuk/ckanext-ga-report
Ross Jones []
Merge branch 'master' of github.com:datagovuk/ckanext-ga-report

11 years agoChanges to tidy up the handling of all months;
Ross Jones []
Changes to tidy up the handling of all months;

11 years agosingle_popular_dataset now returns a dataset dict which is what is needed by DGU.
David Read []
single_popular_dataset now returns a dataset dict which is what is needed by DGU.

11 years agoFixes to index for publishers