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 +4 -4
- data/_includes/layout/head.html +26 -8
- data/lib/rawfeed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74f4cbc2531370514a2757a14b351634c9c7b341848685c512ff0967743e1e2a
|
|
4
|
+
data.tar.gz: 1ad644e795fe609546506ef1e64c6f02b228abb112bbf9590a402a2436a1dd20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8eeb8a59ad5ce61dd4794e56d657ccdcce3484f805f6723e92f4a3dfcc80371c7e0aee0c738fe01a748131f5ab23cb94029f8f5949b423be331f56f2e4c05b9
|
|
7
|
+
data.tar.gz: ca576d6121bab1634e0d8c1b62d7426cb52554408df00ff7faf43468f1c7ea064b4b1e091387ee9a756566e8b0c2a771e015a0f229e87a01244f7f82deeb905c
|
data/_includes/layout/head.html
CHANGED
|
@@ -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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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>
|
data/lib/rawfeed/version.rb
CHANGED