card-mod-google_analytics 0.13.1 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -0
  3. data/set/all/google_analytics.rb +1 -1
  4. metadata +10 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18d3e95e4eb32298a9af0df974ea169c241103b0c5d710de1dc9183622356c15
4
- data.tar.gz: 5cac1c0c3fcad086da872af13e8d61e86e25efdaf1155c746c6bffe464fa1962
3
+ metadata.gz: bd13be155a628aa61524100c889a95542256fa4c13b72ee7623298c3693bfe34
4
+ data.tar.gz: 05a230861251ff5e93e7e7a6aacf95d448389adf2930bdf4065c31b0480545cc
5
5
  SHA512:
6
- metadata.gz: a4a12d6f04253ec20ec0092611d82eafadac0135e8eafb8c7414871a6179892569ed5d7e518342346a2b70906dd25bd77001f218379052f40acbb3654101940d
7
- data.tar.gz: 1ed0853827e48697a5d3609155f68b018c95df3a0571eeaffead00aff3d6b9cb218ca9990560e872c9dd71da2953a62b860ae8dcfd669ad7b287ae828ccc5e1a
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`.
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  # can override to have separate keys for web and API
23
23
  def tracker_key
24
- google_analytics_key
24
+ Card.config.google_analytics_tracker_key || google_analytics_key
25
25
  end
26
26
 
27
27
  def tracker_options
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.13.1
4
+ version: '0.14'
5
5
  platform: ruby
6
6
  authors:
7
- - Ethan McCutchen
8
7
  - Philipp Kühl
9
- - Gerry Gleason
8
+ - Ethan McCutchen
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
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: 1.103.1
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: 1.103.1
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: https://decko.org
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.1.6
73
+ rubygems_version: 3.2.28
79
74
  signing_key:
80
75
  specification_version: 4
81
76
  summary: Google Analytics support for decko