okfn / ckanext-lacounts

CKAN extension for the LA Counts project
GNU Affero General Public License v3.0
8 stars 5 forks source link

Enable tracking (Trending datasets) #131

Closed amercader closed 6 years ago

amercader commented 6 years ago

This involves adding the plugin and the background job that crushes the numbers. In terms of the UI, the little fire icon should be displayed in the dataset page (#111) and search results

roll commented 6 years ago

@amercader Is ckanext-googleanalytics not enough?

amercader commented 6 years ago

@roll IIRC correctly the "trending" thing came from an internal tracking CKAN feature. If ckanext-googleanalytics provides it great though. I'll double check.

roll commented 6 years ago

@amercader

CKAN extension to integrate Google Analytics data into CKAN. Gives download stats on package pages, list of most popular packages, etc.

At least I thought that we were going to use it for something like this issue)

roll commented 6 years ago

Also, run into this in the package_item snippet:

 {{ h.popular('recent views', package.tracking_summary.recent, min=10) if package.tracking_summary }}
roll commented 6 years ago

@amercader I will start this one tomorrow morning if you don't mind. As I have nothing more to do until I sync with Sam or you

roll commented 6 years ago

So ckanext-googleanalytics doesn't seem support trending for ckan@2. So we have to follow this instruction - https://docs.ckan.org/en/2.8/maintaining/tracking.html

I'll handle it for now.

roll commented 6 years ago

DONE

roll commented 6 years ago

We can change the minimum datasets threshold in the admin for demonstration purposes:

Update tracking data: