[ckan-dev] Page view tracking not working

Andrea Stella andrea.stella at yacme.com
Tue Apr 5 15:41:00 UTC 2016


Hi all,
I'm andrea and this is my first post in dev-ckan list.

I've a problem with page view tracking in ckan2.4.1. This functionality 
seems to be doing something, but

1) tracking summary data returned by the package_show() API are
     "tracking_summary": {"total": 14, "recent": 7}

2) if I execute '/usr/lib/ckan/default/bin/paster --plugin=ckan tracking 
export /home/user/stats.csv -c /etc/ckan/default/production.ini' in 
stat.csv I have
     dataset id,dataset name,total views,recent views (last 2 weeks)
     e2571ba3-4e9c-45ba-9400-d08b423b2bd5,immi,6,6

3) and in the ckan interface (dataset section) popular datasets and 
resources are not highlighted (with more than 10 views).

In my crontab I have '@hourly /usr/lib/ckan/default/bin/paster 
--plugin=ckan tracking update -c /etc/ckan/default/production.ini && 
/usr/lib/ckan/default/bin/paster --plugin=ckan search-index rebuild -r 
-c /etc/ckan/default/production.ini'

Any ideas?

Thanks a lot,

a.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160405/857bd490/attachment-0002.html>


More information about the ckan-dev mailing list