[ckan-dev] CKAN 2.3 page view tracking - tracking summary always zero

George Sattler George.sattler at xvt.com.au
Tue Mar 24 01:10:07 UTC 2015


Hi Jorge
Enabling the tracking will begin CKAN collecting raw tracking which you can see in the ‘tracking_raw' table in the database. The next step is to run the paster task to generate a summary from what’s in ‘tracking_raw' table and adds it to the ‘tracking_summary' table.

Step 2 (http://docs.ckan.org/en/latest/maintaining/tracking.html?highlight=tracking#enabling-page-view-tracking) describes the commands to run to
- generate the summary, and
- refresh the search-indexes to include this summary info.

I suggest testing it out before adding it to your crontab by running these tasks:
paster tracking update -c /etc/ckan/default/production.ini
paster search-index rebuild -c /etc/ckan/default/production.ini

It might be that you just missed the last step to do the re-indexing though.

Hope that helps

Cheers
George

On 24 Mar 2015, at 8:10 am, Jorge Pantoja <jorgepantojam at gmail.com<mailto:jorgepantojam at gmail.com>> wrote:

Hi Everyone,

I'm trying to install the Page View Tracking on CKAN 2.3 (following this guide http://docs.ckan.org/en/latest/maintaining/tracking.html), however the tracking summary is always zero for all the datasets I have. I've included the ckan.tracking_enabled = true on the production.ini. When I check the api of each package, it shows:

tracking_summary: {
    total: 0,
    recent: 0
},


What could be the problem?


Thanks for your help,

Jorge


_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev


________________________________
This email and any files transmitted with it is confidential and intended solely for the use of the addressee. The unauthorised use, dissemination, forwarding, printing or copying of this communication is strictly prohibited. If you have received this communication in error please notify us immediately by reply email and destroy this communication. Any views and opinions presented in this email are solely those of the author and do not necessarily represent the views of XVT Solutions. The recipient should check this email and any attachments for viruses. XVT Solutions accepts no liability for the content of this email, and any damage caused by any viruses that could potentially be transmitted through this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150324/8eec8077/attachment-0003.html>


More information about the ckan-dev mailing list