govuk_frontend_toolkit 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ # 3.3.0
2
+
3
+ - Add: Analytics - pageview tracking for a print attempt
4
+
1
5
  # 3.2.1
2
6
 
3
7
  - Fix: Analytics - don't run error and print plugins on load
@@ -1 +1 @@
1
- 3.2.1
1
+ 3.3.0
@@ -7,6 +7,7 @@
7
7
  GOVUK.analyticsPlugins.printIntent = function () {
8
8
  var printAttempt = (function () {
9
9
  GOVUK.analytics.trackEvent('Print Intent', document.location.pathname);
10
+ GOVUK.analytics.trackPageview('/print' + document.location.pathname);
10
11
  });
11
12
 
12
13
  // Most browsers
@@ -17,11 +18,11 @@
17
18
  if (!mql.matches && mqlListenerCount === 0) {
18
19
  printAttempt();
19
20
  mqlListenerCount++;
20
- // If we try and print again in 3 seconds, don't log it
21
+ // If we try and print again within 3 seconds, don't log it
21
22
  window.setTimeout(function () {
22
23
  mqlListenerCount = 0;
23
24
  // printing will be tracked again now
24
- }, 1e3);
25
+ }, 3000);
25
26
  }
26
27
  });
27
28
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_frontend_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-11 00:00:00.000000000 Z
12
+ date: 2015-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -288,7 +288,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
288
  version: '0'
289
289
  segments:
290
290
  - 0
291
- hash: 3608935864278764479
291
+ hash: 841556332065995635
292
292
  required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  none: false
294
294
  requirements:
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  segments:
299
299
  - 0
300
- hash: 3608935864278764479
300
+ hash: 841556332065995635
301
301
  requirements: []
302
302
  rubyforge_project:
303
303
  rubygems_version: 1.8.23