utopia-tags-google-analytics 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -3
- data/lib/utopia/tags/google-analytics/version.rb +1 -1
- data/utopia-tags-google-analytics.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe1eaf3379385cf8aa4db8500bc7452377a68cc5
|
4
|
+
data.tar.gz: 8e3981afccceeb328824ab545f5c8bff04ab2088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a39dbfab7ddf0765709f6db4e91746da86ddcd3788a9cad53252963ff1b8d0043fdd28a6a9bc266288822e2741d9eaccfc8988657c1ea18f5b1522465ac6b2
|
7
|
+
data.tar.gz: 0dd65c471d183dc3dc4d776af7b415c890f96d44ee3a51575918fb07131f48c7d261dbfcd608359940c1ab5240128878df947423b230c4b47d07619ab7364e45
|
data/README.md
CHANGED
@@ -20,11 +20,27 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
First make sure to add the `<google-analytics>` tag to `Utopia::Content` in your rackup file along with all the other tags you
|
24
|
+
wish to use:
|
24
25
|
|
25
|
-
|
26
|
+
```ruby
|
27
|
+
require 'utopia/tags/google-analytics'
|
28
|
+
|
29
|
+
...
|
30
|
+
|
31
|
+
use Utopia::Content,
|
32
|
+
tags: {
|
33
|
+
...
|
34
|
+
'google-analytics' => Utopia::Tags::GoogleAnalytics,
|
35
|
+
...
|
36
|
+
}
|
37
|
+
```
|
38
|
+
|
39
|
+
You might want to combine this tag with the `<environment>` tag to ensure that Google Analytics is only tracked in production. Simply set the `id` attribute to whatever you have been provided by Google Analytics:
|
40
|
+
|
41
|
+
<environment only="production">
|
26
42
|
<google-analytics id="UA-XXXXXXX-XX" />
|
27
|
-
</
|
43
|
+
</environment>
|
28
44
|
|
29
45
|
## Contributing
|
30
46
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
-
spec.add_dependency "utopia", "~> 1.6
|
27
|
+
spec.add_dependency "utopia", "~> 1.6"
|
28
28
|
spec.add_dependency "json"
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utopia-tags-google-analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: utopia
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.6
|
19
|
+
version: '1.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.6
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|