glib-web 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/glib/analytics/funnel.rb +10 -3
- 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: 5f6803ad260efc33294f643a2a623e418a260b24b18729142aeb41f6a6d891c9
|
4
|
+
data.tar.gz: e3c581588cff960a60857cd63aa904dae41a81da4a86596b2bf17275353acca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de3a468c5f82b9d4ee70afc5763e1ab9f31e4ff54cbb14ed891ff546b867db084a6c5d091cc4cb70d6f75fc24b0fe052c169beb6edc4e3c3e96beefe3208574
|
7
|
+
data.tar.gz: c7cd87a3e9399c9b03730eee4a16f679af1d55eada9b0a4468129a122306a5ef54d42e4c3a9ef39617a320d38cadc00e08ca60255443abaeae6b7944034172ce
|
@@ -35,9 +35,16 @@ module Glib::Analytics
|
|
35
35
|
segment = request.headers['GApp-Analytics-Referer-Segment']
|
36
36
|
placement = request.headers['GApp-Analytics-Referer-Placement']
|
37
37
|
|
38
|
-
if
|
39
|
-
|
40
|
-
|
38
|
+
if group.nil? && action.nil? && !request.headers['referer'].nil?
|
39
|
+
if request.headers['referer'].start_with?("http://#{request.host}",
|
40
|
+
"https://#{request.host}",
|
41
|
+
"http://www.#{request.host}",
|
42
|
+
"https://www.#{request.host}")
|
43
|
+
|
44
|
+
route = Rails.application.routes.recognize_path(request.headers['referer'].delete_suffix('/'))
|
45
|
+
group = route[:controller]
|
46
|
+
action = route[:action]
|
47
|
+
end
|
41
48
|
end
|
42
49
|
|
43
50
|
if group && action
|