staccato 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +7 -0
- data/lib/staccato/screenview.rb +15 -0
- data/lib/staccato/tracker.rb +8 -0
- data/lib/staccato/transaction.rb +1 -1
- data/lib/staccato/version.rb +1 -1
- data/lib/staccato.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3af0bde415a8655877df36c7d4946b5b58783fa
|
4
|
+
data.tar.gz: 72daad3c89d5e31a7a546c1881bb9a0b92eef036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e370b94498361d9db18cc0acdbab16d81d7d9f458e88743f25f46febaa77b317337d5a0baf77b09c4b21d76d3388f4c5741c85c212ff4cc01a5498bd4034c3a1
|
7
|
+
data.tar.gz: f9138d8bcbafc4c81007478493236c5182484a6721bb30cd994566f1fff2849b6851634e3d6e7361d46ae0300ab6dde349f52daec0d4d261204b2de930aa0c9a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -409,6 +409,13 @@ pageview.add_measurement(:product_impression, {
|
|
409
409
|
pageview.track!
|
410
410
|
```
|
411
411
|
|
412
|
+
### Screenview (as in mobile) ###
|
413
|
+
|
414
|
+
```ruby
|
415
|
+
tracker.screenview({
|
416
|
+
screen_name: 'user1'
|
417
|
+
})
|
418
|
+
|
412
419
|
## Google Documentation ##
|
413
420
|
|
414
421
|
https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
|
data/lib/staccato/tracker.rb
CHANGED
@@ -52,6 +52,14 @@ module Staccato
|
|
52
52
|
build_pageview(options).track!
|
53
53
|
end
|
54
54
|
|
55
|
+
def build_screenview(options = {})
|
56
|
+
Staccato::Screenview.new(self, options)
|
57
|
+
end
|
58
|
+
|
59
|
+
def screenview(options = {})
|
60
|
+
build_screenview(options).track!
|
61
|
+
end
|
62
|
+
|
55
63
|
# Build an event
|
56
64
|
#
|
57
65
|
# @param options [Hash] options include:
|
data/lib/staccato/transaction.rb
CHANGED
data/lib/staccato/version.rb
CHANGED
data/lib/staccato.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staccato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/staccato/null_measurement.rb
|
134
134
|
- lib/staccato/option_set.rb
|
135
135
|
- lib/staccato/pageview.rb
|
136
|
+
- lib/staccato/screenview.rb
|
136
137
|
- lib/staccato/social.rb
|
137
138
|
- lib/staccato/timing.rb
|
138
139
|
- lib/staccato/tracker.rb
|