govuk_frontend_toolkit
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -0,1 +1,5 @@ | ||
# 5.1.3 | ||
- Add an experimental GOV.UK analytics tracker. Given the URL to a single pixel GIF, it will encode analytics data as query string parameters on the call to the GIF ([PR #387](https://github.com/alphagov/govuk_frontend_toolkit/pull/387)) | ||
# 5.1.2 | ||
@@ -2,0 +6,0 @@ |
@@ -16,2 +16,7 @@ ;(function (global) { | ||
} | ||
if (typeof config.govukTrackerGifUrl !== 'undefined') { | ||
var govukTrackerGifUrl = config.govukTrackerGifUrl | ||
delete config.govukTrackerGifUrl | ||
this.trackers.push(new GOVUK.GOVUKTracker(govukTrackerGifUrl)) | ||
} | ||
} | ||
@@ -32,2 +37,3 @@ | ||
GOVUK.GoogleAnalyticsUniversalTracker.load() | ||
GOVUK.GOVUKTracker.load() | ||
} | ||
@@ -34,0 +40,0 @@ |
{ | ||
"name": "govuk_frontend_toolkit", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "npm package for using the GOV.UK frontend toolkit", | ||
@@ -5,0 +5,0 @@ "repository": { |
480170
174
1500