effective_pages 3.7.9 → 3.7.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c23db8c7bacd7f56f5e1bbdfa908393bbda289587597ab128f447605f35de2c6
|
4
|
+
data.tar.gz: f472c6b3d18df67e02011f9b882ca58a8e36f4e5a040863f0f4185e1bbff17ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17554b9ba419a6a94da55ca8514e680097f0d3917e216b228cf8b7b985fee1c46c12b6cae3381ec16a462293983c1072d5da583f5fdfcee87b75a2cbc20d7f2e
|
7
|
+
data.tar.gz: 2e64ec4e242f0d95d802127bc399c1973568d12cd3e55a31dc86e389cf0b0bd9b6810038e9a8b8be8c077b4e990fcc86546b51773450172ba13df57c4e7945fa
|
@@ -1,13 +1,11 @@
|
|
1
1
|
// Add Google Analytics Code
|
2
2
|
// Supports Turbolinks and Turbo
|
3
|
-
document.addEventListener(
|
3
|
+
document.addEventListener("turbolinks:load", function(event) {
|
4
4
|
if(typeof(gtag) != 'function') { return }
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
'page_title': document.title,
|
11
|
-
'page_path': location.href.replace(location.origin, "")
|
6
|
+
gtag('event', 'page_view', {
|
7
|
+
page_title: event.target.title,
|
8
|
+
page_location: event.data.url,
|
9
|
+
page_path: location.href.replace(location.origin, "")
|
12
10
|
});
|
13
11
|
})
|
@@ -32,7 +32,9 @@ module Effective
|
|
32
32
|
template = File.join(EffectivePages.pages_path, @page.template)
|
33
33
|
layout = File.join(EffectivePages.layouts_path, @page.layout)
|
34
34
|
|
35
|
-
|
35
|
+
respond_to do |format|
|
36
|
+
format.html { render(template, layout: layout, locals: { page: @page }) }
|
37
|
+
end
|
36
38
|
end
|
37
39
|
|
38
40
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|