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

Track flash messages in analytics #366

Merged
merged 1 commit into from Feb 9, 2015
Merged

Conversation

@fofr
Copy link
Contributor

@fofr fofr commented Feb 6, 2015

Keep track of the success, error and warning messages displayed to
users by using events.

  • Track the alert type as the action
  • Track the alert message as the label
  • The page URL is captured as the event category automatically.

This will allow tracking of edition saves that happen without ajax.

Keep track of the success, error and warning messages displayed to
users by using events.

* Track the alert type as the action
* Track the alert message as the label
* The page URL is captured as the event category automatically.

This will allow tracking of edition saves that happen without ajax.
@dhwthompson
Copy link
Contributor

@dhwthompson dhwthompson commented Feb 6, 2015

data-module="auto-track-event"

What is this sorcery?

@fofr
Copy link
Contributor Author

@fofr fofr commented Feb 9, 2015

The AutoTrackEvent module is within the admin template, and has mostly been used by the Transition app.

See: https://github.com/alphagov/govuk_admin_template/blob/master/app/assets/javascripts/govuk-admin-template/modules/auto_track_event.js

vinayvinay added a commit that referenced this pull request Feb 9, 2015
@vinayvinay vinayvinay merged commit aa58d72 into master Feb 9, 2015
1 check passed
1 check passed
default "Build #635 succeeded on Jenkins"
Details
@vinayvinay vinayvinay deleted the track-saves-without-ajax branch Feb 9, 2015
@dhwthompson
Copy link
Contributor

@dhwthompson dhwthompson commented Feb 11, 2015

Thanks for the explanation, @fofr. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.