{"push_id":732546296,"size":1,"distinct_size":1,"ref":"refs/heads/add-support-for-sending-page-when-tracking-events","head":"4fa37bfe9c49b9ed8bf4b0409b2d31d51133c805","before":"2ca19bb14dc010c6aecb7eb34b7daa8ecb0d96b0","commits":[{"sha":"4fa37bfe9c49b9ed8bf4b0409b2d31d51133c805","author":{"email":"711c73f64afdce07b7e38039a96d2224209e9a6c@seagul.co.uk","name":"Chris Roos"},"message":"Add support for sending page option when tracking events\n\nThis adds support for sending the `page` option to `ga()` when tracking\nevents[1].\n\nWe're trying to use events to track when people reach an outcome in Smart\nAnswers[2]. The current set-up is giving us inaccurate data because of the use\nof JavaScript to partially replace pages as a user navigates the Smart Answer:\nThe majority of the events are being recorded against the start page of the\nSmart Answer (e.g. /student-finance-forms/y) instead of the outcome page.\n\nI've got an open pull request in Smart Answers that switches us to use `ga()`\ndirectly so that I can test whether sending the `page` option actually gives us\nthe data we're interested in[3]. Assuming it does then I think the right thing\nto do is add support for `page` in this project.\n\n[1]: https://developers.google.com/analytics/devguides/collection/analyticsjs/events#implementation\n[2]: https://github.com/alphagov/smart-answers/commit/5d09931ce02c65ce1ca255f74960e1ee4ec2681e\n[3]: https://github.com/alphagov/smart-answers/pull/1787","distinct":true,"url":"https://api.github.com/repos/chrisroos/govuk_frontend_toolkit/commits/4fa37bfe9c49b9ed8bf4b0409b2d31d51133c805"}]}