Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate GA library for tracking download events #314

Closed
2 tasks
acorbi opened this issue Jul 5, 2017 · 2 comments
Closed
2 tasks

Integrate GA library for tracking download events #314

acorbi opened this issue Jul 5, 2017 · 2 comments

Comments

@acorbi
Copy link
Contributor

acorbi commented Jul 5, 2017

The new google analytics javascript library could be integrated into the wpckan plugin (or even better into the wp-odm_theme theme in order to be accessible by all the plugins) and used for tracking dataset download events. Concretelly, following events should be tracked:

  • When the dataset detail page is loaded, an event dataset_view would be sent to GAnalytics containing the id of the dataset in question.

  • When the user clicks on the download button for a dataset's resource, an event resource_download would be sent to GAnalytics containing the id of the dataset and the id of the resource.

  • OPTIONAL: When the user user clicks on a related dataset listed on the sidebar, an event related_dataset_link would be sent to GAnalytics containing the id of the dataset the user is being linked to.

  • Integrate GA javascript library (optimally via composer)

  • Create additional js file under /js/ which contains javascript code

@DragonVirus
Copy link
Contributor

When the dataset detail page is loaded, an event dataset_view would be sent to GAnalytics containing the id of the dataset in question.

@acorbi i think this is currently logged as page view. Right ? Can you explain a bit why this one needed as event ?

@acorbi
Copy link
Contributor Author

acorbi commented Jul 17, 2017

@DragonVirus It should be registered as page view yes. however I would suggest to track this as event as well in order to have more structured/cohesive data to analyze user's behaviour. It might be more convenient to have those events in order to compare with the download events, that way we can know the amount of users which drop-off the dataset detail pages without downloading a resource.

acorbi pushed a commit that referenced this issue Jul 20, 2017
* Add sftp-config to .gitignore

* GA Event Tracking in data detail page

* Update version number
acorbi pushed a commit that referenced this issue Jul 25, 2017
* Fixing invalid links on metadata download

* Fixes #324 (#325)

* Skeleton completed, now need to implement each templates
* better readme

* Impl #314 GA Event Tracking on data details page (#327)

* Add sftp-config to .gitignore

* GA Event Tracking in data detail page

* Update version number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants