rawfeed 0.2.9 → 0.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9d0e278593d02831f20f510933d14e867299ab53508f83d221952bb398bf8d5
4
- data.tar.gz: 013f28a29fdb4e5b3bb4c83049df64fdc67ac4b418b2290543786559af36721c
3
+ metadata.gz: 74f4cbc2531370514a2757a14b351634c9c7b341848685c512ff0967743e1e2a
4
+ data.tar.gz: 1ad644e795fe609546506ef1e64c6f02b228abb112bbf9590a402a2436a1dd20
5
5
  SHA512:
6
- metadata.gz: 449f20ddede0b61e148a0bf7164ddb9f14c4a252583f62327b3a91558258f26c3c7fd38cc9b2a07a51403523b46aa8f16ecb65d62ad4c0c8549489d65c5784a3
7
- data.tar.gz: 3c0ce969077f1cb55623992d53efc4a77d4b24024a7c4fd0ce77cf1c527a0c7cbd9325f3eda741dafce72f6913b79c4782471ec0ad33596dc584a61a910578c3
6
+ metadata.gz: f8eeb8a59ad5ce61dd4794e56d657ccdcce3484f805f6723e92f4a3dfcc80371c7e0aee0c738fe01a748131f5ab23cb94029f8f5949b423be331f56f2e4c05b9
7
+ data.tar.gz: ca576d6121bab1634e0d8c1b62d7426cb52554408df00ff7faf43468f1c7ea064b4b1e091387ee9a756566e8b0c2a771e015a0f229e87a01244f7f82deeb905c
@@ -123,16 +123,34 @@
123
123
  {% comment %} feed {% endcomment %}
124
124
  <link rel="alternate" type="application/atom+xml" title="{{ site_title }}" href="{{ '/feed.xml' | relative_url }}">
125
125
 
126
+ <!-- Google Analytics -->
126
127
  {%- if jekyll.environment == 'production' and head_.google.analytics.enable == true and head_.google.analytics.id != "" -%}
127
- <!-- Google Analytics -->
128
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ head_.google.analytics.id }}"></script>
129
128
  <script>
130
- window.dataLayer = window.dataLayer || [];
131
- function gtag(){dataLayer.push(arguments);}
132
- gtag('js', new Date());
133
-
134
- gtag('config', '{{ head_.google.analytics.id }}');
129
+ (function() {
130
+ function activeTrackers() {
131
+ var ga_id = "{{ head_.google.analytics.id }}";
132
+
133
+ var script = document.createElement('script');
134
+ script.async = true;
135
+ script.src = "https://www.googletagmanager.com/gtag/js?id=" + ga_id;
136
+ document.head.appendChild(script);
137
+
138
+ window.dataLayer = window.dataLayer || [];
139
+ function gtag(){dataLayer.push(arguments);}
140
+ gtag('js', new Date());
141
+ gtag('config', ga_id, {
142
+ 'cookie_domain': '{{ site.url | replace: "https://", "" | replace: "http://", "" | split: "/" | first }}',
143
+ 'anonymize_ip': true,
144
+ 'cookie_flags': 'SameSite=None;Secure',
145
+ 'update': true
146
+ });
147
+
148
+ console.log("Google Analytics loaded!");
149
+ }
150
+
151
+ // Chama direto, sem esperar o DOMContentLoaded, para capturar a visita o quanto antes
152
+ activeTrackers();
153
+ })();
135
154
  </script>
136
- <!-- Google Analytics -->
137
155
  {%- endif -%}
138
156
  </head>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rawfeed
4
- VERSION = "0.2.9"
4
+ VERSION = "0.2.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rawfeed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - William C. Canin