-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load modules after analytics has loaded
Some of the modules require Universal Analytics to exist, so we should load our analytics first to reduce the risk of crashing JavaScript. I have also ensured auto-scroll-tracker isn't relying on a different module initialising window.GOVUK.analyticsVars
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters