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

Send pageviews at module load time #1129

Merged
merged 2 commits into from
Oct 16, 2018

Conversation

steventux
Copy link
Contributor

See alphagov/publisher#962 and alphagov/govuk-content-schemas#823 for context.

  • Uses the tracking domain data attribute to configure a cross domain tracker.
  • Sends the page view as the tracking module loads, sends the event when the radio group form is submitted.

Visual regression results:
https://government-frontend-pr-[THIS PR NUMBER].surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-[THIS PR NUMBER].herokuapp.com/component-guide

Steve Laing added 2 commits October 15, 2018 10:29
In order to emulate the default ga tracking behaviour the cross
domain pageview should be sent when the module is started. The
cross domain event should be sent when the form is submitted.
@steventux steventux merged commit 71aca4d into master Oct 16, 2018
@steventux steventux deleted the send-pageviews-at-module-load-time branch October 16, 2018 13:16
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.

3 participants