effective_pages 3.16.1 → 3.17.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '089c9fb2dab6ed22b60cbaae0025de51e642ce360a3100367273f4ab88a19e1e'
|
|
4
|
+
data.tar.gz: a365d1e792831e329556cb69ee38a0ac24f6fc7bdc2ea402d122391d9e024536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bc4e654af2f040643097d18675c948e921aa1809e6180ee9396b73cadfd3b189350e9b37c20fc4daa63eba1455a666503c453252b60d550c2453718c5ffe8e2
|
|
7
|
+
data.tar.gz: c8de57d906b00320f9f57b0610c9440e1ae3d78a403a3f516b8a3db769236e16bb55d6464da471d0ef3f98c87b485fcad5ce54bf5265bbb3bde268ccc246d60f
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Add Google Analytics Code
|
|
2
|
-
// Supports Turbolinks
|
|
2
|
+
// Supports Turbolinks
|
|
3
3
|
document.addEventListener("turbolinks:load", function(event) {
|
|
4
4
|
if(typeof(gtag) != 'function') { return }
|
|
5
5
|
|
|
@@ -9,3 +9,14 @@ document.addEventListener("turbolinks:load", function(event) {
|
|
|
9
9
|
page_path: location.href.replace(location.origin, "")
|
|
10
10
|
});
|
|
11
11
|
})
|
|
12
|
+
|
|
13
|
+
// Supports Turbo
|
|
14
|
+
document.addEventListener("turbo:load", function(event) {
|
|
15
|
+
if(typeof(gtag) != 'function') { return }
|
|
16
|
+
|
|
17
|
+
gtag('event', 'page_view', {
|
|
18
|
+
page_title: document.title,
|
|
19
|
+
page_location: event.detail.url,
|
|
20
|
+
page_path: location.href.replace(location.origin, "")
|
|
21
|
+
});
|
|
22
|
+
})
|
|
@@ -25,7 +25,7 @@ module Effective
|
|
|
25
25
|
flash.now[:warning] = [
|
|
26
26
|
'Hi Admin!',
|
|
27
27
|
('You are viewing a draft page.' unless @page.published?),
|
|
28
|
-
("<a href='#{effective_pages.edit_admin_page_path(@page)}' class='alert-link' data-turbolinks='false'>Click here to edit this page</a>.")
|
|
28
|
+
("<a href='#{effective_pages.edit_admin_page_path(@page)}' class='alert-link' data-turbolinks='false' data-turbo='false'>Click here to edit this page</a>.")
|
|
29
29
|
].compact.join(' ')
|
|
30
30
|
end
|
|
31
31
|
|