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 JavaScript interactions in Google Analytics #211

Merged
merged 3 commits into from Mar 10, 2014
Merged

Conversation

@fofr
Copy link
Contributor

@fofr fofr commented Mar 7, 2014

Paul Hayes added 3 commits Mar 7, 2014
* Call GOVUK.track with action, label and value
* Create a helper module to pass significant events to GA using markup
Paul Hayes
* Track multiple selections in modal window
* Track when mappings are saved, with the type of action performed and
the number of mappings updated
* update-single, bulk-edit-archive, bulk-edit-redirect, bulk-tag,
bulk-add-archive-overwrite-existing, bulk-add-archive-ignore-existing,
etc.
@zilnhoj
Copy link

@zilnhoj zilnhoj commented Mar 7, 2014

what is this event tracking set up to track - is it an event that's going
to be fired on every page or is it for specific tools
I'm concerned that if it's going to fire events from every page that it
will impact our monthly GA gif hit limit
Thanks

John

On Fri, Mar 7, 2014 at 2:24 PM, Paul Hayes notifications@github.com wrote:


You can merge this Pull Request by running

git pull https://github.com/alphagov/transition ga-events

Or view, comment on, or merge it at:

#211
Commit Summary

  • Create a Google Analytics event tracker
  • Auto-track events based on markup
  • Track use of bulk edit and bulk add tools

File Changes

  • M app/assets/javascripts/govuk.jshttps://github.com//pull/211/files#diff-0(34)
  • A app/assets/javascripts/modules/auto_track_event.jshttps://github.com//pull/211/files#diff-1(15)
  • M app/controllers/mappings_controller.rbhttps://github.com//pull/211/files#diff-2(3)
  • M app/models/view/mappings/bulk_adder.rbhttps://github.com//pull/211/files#diff-3(8)
  • M app/models/view/mappings/bulk_editor.rbhttps://github.com//pull/211/files#diff-4(4)
  • M app/models/view/mappings/bulk_tagger.rbhttps://github.com//pull/211/files#diff-5(4)
  • M app/views/layouts/application.html.erbhttps://github.com//pull/211/files#diff-6(1)
  • M app/views/mappings/_saved_mappings_modal.html.erbhttps://github.com//pull/211/files#diff-7(7)
  • M app/views/mappings/edit_multiple_modal.html.erbhttps://github.com//pull/211/files#diff-8(11)
  • M features/mapping_create_multiple.featurehttps://github.com//pull/211/files#diff-9(1)
  • M features/mapping_edit_multiple.featurehttps://github.com//pull/211/files#diff-10(4)
  • M features/mapping_tag.featurehttps://github.com//pull/211/files#diff-11(1)
  • M features/step_definitions/page_assertion_steps.rbhttps://github.com//pull/211/files#diff-12(7)
  • A spec/javascripts/spec/auto_track_event.spec.jshttps://github.com//pull/211/files#diff-13(22)
  • M spec/javascripts/spec/govuk.spec.jshttps://github.com//pull/211/files#diff-14(38)
  • M spec/models/view/bulk_adder_spec.rbhttps://github.com//pull/211/files#diff-15(31)

Patch Links:

Reply to this email directly or view it on GitHubhttps://github.com//pull/211
.

John Byrne

Product analyst *Government Digital Service
Cabinet Office
*T:
07810 814 713
_E:_john.byrne@digital.cabinet-office.gov.uk
6th Floor * Aviation House * 125 - 133 Kingsway * London * WC2 6NH

@fofr
Copy link
Contributor Author

@fofr fofr commented Mar 7, 2014

@zilnhoj The events fire on specific page interactions: when users are selecting multiple paths to edit, and when they have saved their changes.

What are the limits? Are they shared across all profiles?

Visits at the moment are 20-50 users per day.

@zilnhoj
Copy link

@zilnhoj zilnhoj commented Mar 7, 2014

thanks for clarifying - the limit is 1 Billion/month for the account but if
we have lots of events on each page we could be in danger of reaching that.
but here it's not the case so it won't be an issue

On Fri, Mar 7, 2014 at 2:56 PM, Paul Hayes notifications@github.com wrote:

@zilnhoj https://github.com/zilnhoj The events fire on specific page
interactions: when users are selecting multiple paths to edit, and when
they have saved their changes.

What are the limits? Are they shared across all profiles?

Visits at the moment are 20-50 users per day.

Reply to this email directly or view it on GitHubhttps://github.com//pull/211#issuecomment-37031006
.

John Byrne

Product analyst *Government Digital Service
Cabinet Office
*T:
07810 814 713
_E:_john.byrne@digital.cabinet-office.gov.uk
6th Floor * Aviation House * 125 - 133 Kingsway * London * WC2 6NH

jamiecobbett added a commit that referenced this pull request Mar 10, 2014
Track JavaScript interactions in Google Analytics
@jamiecobbett jamiecobbett merged commit d7f2c00 into master Mar 10, 2014
1 check passed
1 check passed
default "Build #185 succeeded on Jenkins"
Details
@jamiecobbett jamiecobbett deleted the ga-events branch Mar 10, 2014
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.