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

Add event tracking script and calls #36

Merged
merged 2 commits into from Nov 2, 2020

Conversation

reint-fischer
Copy link
Contributor

I'd like to track the clicks on the links to the tutorials

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting idea, Reint. How does this work? Where will the data be sent? How will we be able to analyse it?

Also, somewhat related to this: should we make the entire tiles (or at least the titles and the images) links to the tutorial too? Now, the only link is the small 'render' button

index.html Outdated
Comment on lines 41 to 46
/**
* Functie die een klik op een uitgaande link vastlegt in Analytics.
* Deze functie vereist een geldige URL-tekenreeks als argument en gebruikt deze
* als gebeurtenislabel. Wanneer de methode 'transport' wordt ingesteld op 'beacon', wordt de hit verzonden
* bij gebruik van 'navigator.sendBeacon' in een browser die dat ondersteunt.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide this documentation/comment in English?

@reint-fischer
Copy link
Contributor Author

I was looking into what to do with the FAQ and the new High-level Parcels tutorial and wanted to find out how often people go to documentation/FAQ/tutorials. We can see the documentation and FAQ views because they are on OceanParcels.org, but we can't see the tutorial pageviews. This records the 'Events' in which a tutorial link is clicked and records them under the 'Behavior' -> 'Events' tab in Google Analytics

@reint-fischer reint-fischer merged commit 9fc2c87 into master Nov 2, 2020
@reint-fischer reint-fischer deleted the add_tutorial_click_event_tags branch November 2, 2020 15:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants