card-mod-google_analytics 0.13.4 → 0.14
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 +4 -4
- data/README.md +29 -0
- data/set/all/google_analytics.rb +1 -1
- metadata +10 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd13be155a628aa61524100c889a95542256fa4c13b72ee7623298c3693bfe34
|
|
4
|
+
data.tar.gz: 05a230861251ff5e93e7e7a6aacf95d448389adf2930bdf4065c31b0480545cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 544be6cec435b56222f39540381450d035fdae24bc60597bd4aea265866b4066ca7fbfac4030908e8afbf5738f4ea7dec91b5092e088a75413bbcae053574273
|
|
7
|
+
data.tar.gz: 508ad066b267eab23d43710586fc4447c1af24baeb0ebe096ac4f8068451c8315de4602fc587cbcc68dbffa9a3e02a05ebbe72d0cbc1fd207b34a33f4c585035
|
data/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
# @title README - mod: google analytics
|
|
3
|
+
-->
|
|
4
|
+
|
|
5
|
+
# Google Analytics mod
|
|
6
|
+
|
|
7
|
+
This mod supports the inclusion of Google Analytics snippets in the `<head>` tag
|
|
8
|
+
of Decko pages.
|
|
9
|
+
|
|
10
|
+
_Note: this mod currently supports only Universal Analytics, but GA4 support is
|
|
11
|
+
coming soon._
|
|
12
|
+
|
|
13
|
+
## Client-side tracking: Snippets
|
|
14
|
+
|
|
15
|
+
To add a snippet, Monkeys can add a universal analytics key for your GA property
|
|
16
|
+
to `config.google_analytics_key`. Sharks can also edit
|
|
17
|
+
the `:google_analytics_key` card.
|
|
18
|
+
|
|
19
|
+
## Server-side tracking (experimental)
|
|
20
|
+
|
|
21
|
+
It is possible to send information to Google Analytics about server requests
|
|
22
|
+
that never go through a browser (and therefore can't be captured using
|
|
23
|
+
snippets). Any request for which the method `#track_page_from_server?`
|
|
24
|
+
returns true for the main card will send information to the Google Analytics
|
|
25
|
+
account configured. If you want these requests to go to a different property
|
|
26
|
+
(which is recommended, because without the extra browser information, these
|
|
27
|
+
requests have far less metadata and are thus harder for GA to interpret as
|
|
28
|
+
part of continuous user journeys), then you can add a key for that property
|
|
29
|
+
using `config.google_analytics_tracker_key`.
|
data/set/all/google_analytics.rb
CHANGED
metadata
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: card-mod-google_analytics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: '0.14'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Ethan McCutchen
|
|
8
7
|
- Philipp Kühl
|
|
9
|
-
-
|
|
8
|
+
- Ethan McCutchen
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date: 2021-
|
|
12
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: card
|
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
|
18
17
|
requirements:
|
|
19
|
-
- -
|
|
18
|
+
- - ">="
|
|
20
19
|
- !ruby/object:Gem::Version
|
|
21
|
-
version:
|
|
20
|
+
version: '0'
|
|
22
21
|
type: :runtime
|
|
23
22
|
prerelease: false
|
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
24
|
requirements:
|
|
26
|
-
- -
|
|
25
|
+
- - ">="
|
|
27
26
|
- !ruby/object:Gem::Version
|
|
28
|
-
version:
|
|
27
|
+
version: '0'
|
|
29
28
|
- !ruby/object:Gem::Dependency
|
|
30
29
|
name: staccato
|
|
31
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -47,18 +46,14 @@ executables: []
|
|
|
47
46
|
extensions: []
|
|
48
47
|
extra_rdoc_files: []
|
|
49
48
|
files:
|
|
49
|
+
- README.md
|
|
50
50
|
- lib/card/mod/google_analytics.rb
|
|
51
51
|
- set/all/google_analytics.rb
|
|
52
52
|
- set/all/google_analytics_snippet.haml
|
|
53
|
-
homepage:
|
|
53
|
+
homepage: http://decko.org
|
|
54
54
|
licenses:
|
|
55
55
|
- GPL-3.0
|
|
56
56
|
metadata:
|
|
57
|
-
source_code_uri: https://github.com/decko-commons/decko
|
|
58
|
-
homepage_uri: https://decko.org
|
|
59
|
-
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
|
60
|
-
wiki_uri: https://decko.org
|
|
61
|
-
documentation_url: http://docs.decko.org/
|
|
62
57
|
card-mod: google_analytics
|
|
63
58
|
post_install_message:
|
|
64
59
|
rdoc_options: []
|
|
@@ -75,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
70
|
- !ruby/object:Gem::Version
|
|
76
71
|
version: '0'
|
|
77
72
|
requirements: []
|
|
78
|
-
rubygems_version: 3.
|
|
73
|
+
rubygems_version: 3.2.28
|
|
79
74
|
signing_key:
|
|
80
75
|
specification_version: 4
|
|
81
76
|
summary: Google Analytics support for decko
|