ga_events 0.1.4 → 0.1.5
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.
|
@@ -29,10 +29,14 @@ class GaEvents.Event
|
|
|
29
29
|
@klass.flush()
|
|
30
30
|
|
|
31
31
|
push_to_adapter: ->
|
|
32
|
+
# https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking
|
|
33
|
+
# Category, Action and Label must be of type string.
|
|
34
|
+
# Value must be a positive integer.
|
|
35
|
+
|
|
32
36
|
data =
|
|
33
|
-
action: @action
|
|
34
|
-
category: @category
|
|
35
|
-
data.label = @label if @is_present @label
|
|
37
|
+
action: "#{@action}"
|
|
38
|
+
category: "#{@category}"
|
|
39
|
+
data.label = "#{@label}" if @is_present @label
|
|
36
40
|
|
|
37
41
|
if @is_present @value
|
|
38
42
|
# @value is a number and of type integer.
|
data/lib/ga_events/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ga_events
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-02-
|
|
14
|
+
date: 2013-02-15 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
version: '0'
|
|
67
67
|
segments:
|
|
68
68
|
- 0
|
|
69
|
-
hash:
|
|
69
|
+
hash: -622634441041131109
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
none: false
|
|
72
72
|
requirements:
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
segments:
|
|
77
77
|
- 0
|
|
78
|
-
hash:
|
|
78
|
+
hash: -622634441041131109
|
|
79
79
|
requirements: []
|
|
80
80
|
rubyforge_project:
|
|
81
81
|
rubygems_version: 1.8.24
|