Ticket #1451 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Reintegrate download stats on dataset and resource view page - 0.5d

Reported by: johnglover Owned by: johnglover
Priority: major Milestone: ckan-sprint-2012-01-09
Component: ckan Keywords: ux
Cc: dread, rgrp Repository: ckan
Theme: none

Description (last modified by rgrp) (diff)

  • css class: resource-url-analytics
  • Assign to the link tag (a) everywhere we want to count (dataset, resource view) - 0.25d
  • Display counts in same place ...

And deploy on http://thedatahub.org/ - 0.25d

Possible: Also move analytics extension into core (decided not to).

Change History

comment:1 Changed 2 years ago by johnglover

  • Milestone changed from current-ckan-sprint-2011-11-21 to ckan-sprint-2011-12-05

Haven't looked at this yet, moving to new sprint

comment:2 Changed 2 years ago by johnglover

  • Cc dread, rgrp added

This was taken from the UX pad. I'm looking at it now to make sure that it's working and that we can use it on the new dataset view page. Is it really a good idea to move it to core though? There was no reason given on the pad so I'm not sure why this should be moved to core?

comment:3 Changed 2 years ago by dread

With the cron job setup, maybe this is best left as an extension. The core CKAN was designed to be mean and lean.

comment:4 Changed 2 years ago by johnglover

  • Milestone changed from ckan-sprint-2011-12-05 to current-ckan-sprint-2011-12-19

Scripts and templates updated for CKAN 1.5.1

Waiting for Tom to finish dataset view and resource view updates, then will discuss best place to put the download stats on the page.

comment:5 Changed 2 years ago by johnglover

  • Status changed from new to closed
  • Resolution set to fixed

comment:6 Changed 2 years ago by johnglover

Need to add analytics javascript to new resource view page, will do under ticket #1519.

comment:7 Changed 2 years ago by rgrp

  • Status changed from closed to reopened
  • Resolution fixed deleted
  • Description modified (diff)
  • Summary changed from Reintegrate download stats on dataset view page to Reintegrate download stats on dataset and resource view page

comment:8 Changed 2 years ago by rgrp

  • Description modified (diff)

comment:9 Changed 2 years ago by johnglover

  • Milestone changed from ckan-sprint-2011-12-19 to current-ckan-sprint-2012-01-09

comment:10 Changed 2 years ago by rgrp

  • Description modified (diff)
  • Summary changed from Reintegrate download stats on dataset and resource view page to Reintegrate download stats on dataset and resource view page - 0.5d

comment:11 Changed 2 years ago by johnglover

  • Status changed from reopened to closed
  • Resolution set to fixed

comment:12 Changed 2 years ago by johnglover

This ticket again brought up the issue of a need for inversion of control for writing to CKAN templates (main templates should really ask extensions for data or provide hooks rather than having extensions overwrite sections using genshi/jquery). Have decided to defer this issue for now, as it will be looked at when looking at making our whole extension system more robust early next year.

Related point:

  • We should provide a dashboard area (again via interfaces/hooks) that groups together report data from related extensions. So stats and googleanalytics info should be available from a similar area / url. This is also deferred until the extension overhaul/refactor.

Other outstanding issues:

  • Location / style of download count can be improved
  • Download count should be shown on resource pages

These should be looked at by whoever takes over frontend design.

Note: See TracTickets for help on using tickets.