google-analytics-turbolinks 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1acf878467912a08ee20f69c0048d4f6ac1f8769
4
+ data.tar.gz: c721cf76f5380ffa7937184636e62849a8b2b588
5
+ SHA512:
6
+ metadata.gz: 2bd18421def1cb120ecf6fb9337b365f6b9e8ff49fcc3a72e2cda3713f99e5657675930f0493cb7a5723648a7674ad74b299ae6ee03adc2181d55720b61dfab3
7
+ data.tar.gz: 883112143426cb612725082c2feed91dcf2c0c8c7b1ba6269a93bd3376d1cf0d3dd592e22a25b727a11600d5c7b8d8987877d85e4d9bb7b32d6aebfbf19f2417
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Google::Analytics::Turbolinks
2
2
 
3
- **use with Rails and Assest Pipeline**
3
+ **use with Rails and Asset Pipeline**
4
4
 
5
5
  This gem adds support for Google Analytics to use with Rails Turbolinks, this gem is inspired with turbolinks-analytics gem which seems to been removed from github.
6
6
 
@@ -2,7 +2,10 @@ if window.history?.pushState and window.history.replaceState
2
2
  document.addEventListener 'page:change', (event) =>
3
3
 
4
4
  # Google Analytics
5
- if window._gaq != undefined
5
+ if window.ga != undefined
6
+ ga('set', 'location', location.href.split('#')[0])
7
+ ga('send', 'pageview')
8
+ else if window._gaq != undefined
6
9
  _gaq.push(['_trackPageview'])
7
10
  else if window.pageTracker != undefined
8
11
  pageTracker._trackPageview();
@@ -1,7 +1,7 @@
1
1
  module Google
2
2
  module Analytics
3
3
  module Turbolinks
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-turbolinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shuky Dvir
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
11
+ date: 2013-07-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: This gem adds support for Google Analytics to use with Rails Turbolinks,
@@ -47,32 +44,25 @@ files:
47
44
  - lib/google-analytics-turbolinks/version.rb
48
45
  homepage: https://github.com/shukydvir/google-analytics-turbolinks.git
49
46
  licenses: []
47
+ metadata: {}
50
48
  post_install_message:
51
49
  rdoc_options: []
52
50
  require_paths:
53
51
  - lib
54
52
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
53
  requirements:
57
- - - ! '>='
54
+ - - '>='
58
55
  - !ruby/object:Gem::Version
59
56
  version: '0'
60
- segments:
61
- - 0
62
- hash: 1602749692196818985
63
57
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
- - - ! '>='
59
+ - - '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: '0'
69
- segments:
70
- - 0
71
- hash: 1602749692196818985
72
62
  requirements: []
73
63
  rubyforge_project:
74
- rubygems_version: 1.8.24
64
+ rubygems_version: 2.0.3
75
65
  signing_key:
76
- specification_version: 3
66
+ specification_version: 4
77
67
  summary: This gem adds support for Google Analytics to use with Rails Turbolinks
78
68
  test_files: []