ckan / ckanext-googleanalytics

CKAN extension to integrate Google Analytics data into CKAN. Gives download stats on package pages, list of most popular packages, etc.
GNU Affero General Public License v3.0
35 stars 81 forks source link

GA resource download tracking - not all links are handled #38

Open cezio opened 5 years ago

cezio commented 5 years ago

Resource page shows links to resource in two places, but only one link is handled by GA event tracking. The problem is that link is less visible and untracked link is more likely to be clicked by user:

image

The other link is not handled because css selector looks for resource-url-analytics class, which is not present in second link. One way would be to use

Also, dataset view has resource link, which is not handled:

image

Checked with CKAN 2.6 and master branch of extension