govuk_frontend_toolkit
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -0,1 +1,8 @@ | ||
#3.4.2 | ||
- Fix: Before this fix, when a user fell into variant 0 of a multivariate test, | ||
the data wouldn't be reported to Google correctly because of a broken | ||
null check in the code block that opts the user into the Google Content | ||
Experiment. | ||
# 3.4.1 | ||
@@ -14,3 +21,3 @@ | ||
- Fix: Make the error colour a darker red for greater contrast and to meet WCAG 2.0 AAAA | ||
- Fix: Make the error colour a darker red for greater contrast and to meet WCAG 2.0 AAAA | ||
@@ -17,0 +24,0 @@ # 3.3.0 |
@@ -90,3 +90,5 @@ (function() { | ||
var cohortVariantId = this.cohorts[cohort]['variantId']; | ||
if(contentExperimentId && cohortVariantId && typeof window.ga === "function"){ | ||
if(typeof contentExperimentId !== 'undefined' && | ||
typeof cohortVariantId !== 'undefined' && | ||
typeof window.ga === "function"){ | ||
window.ga('set', 'expId', contentExperimentId); | ||
@@ -93,0 +95,0 @@ window.ga('set', 'expVar', cohortVariantId); |
{ | ||
"name": "govuk_frontend_toolkit", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "npm package for using the GOV.UK frontend toolkit", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,1 +0,1 @@ | ||
3.4.1 | ||
3.4.2 |
470908
863