glib-web 0.6.7 → 0.6.8
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 +3 -4
- 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: debfa281cad1c3955db718e9bc04f0190e3c3d7af424de2179d83be7e95f6dc0
|
4
|
+
data.tar.gz: 93dc0caef3ad5f2f084c8455bcf04dd26ce29f7bc6b15931be720016c5c93483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111b791d73b6f8a57b69441d173f62a8bd2fb77b278ed861457a5e9f1e384f93b7fac3e651cdf26c031612710730cc8f9e8dcc6090daba6f247c155f3a4600e3
|
7
|
+
data.tar.gz: b46e226e8736f9cf33ef07fe2d548c1c136781d9216f1041964d574fe7dffc47d69f001b11606391555d3588dfd596c68b191a499708e1f3b196aa00982ac9a9
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'uri'
|
1
2
|
module Glib::Analytics
|
2
3
|
module Funnel
|
3
4
|
extend ActiveSupport::Concern
|
@@ -36,10 +37,8 @@ module Glib::Analytics
|
|
36
37
|
placement = request.headers['GApp-Analytics-Referer-Placement']
|
37
38
|
|
38
39
|
if group.nil? && action.nil? && !request.headers['referer'].nil?
|
39
|
-
|
40
|
-
|
41
|
-
"http://www.#{request.host}",
|
42
|
-
"https://www.#{request.host}")
|
40
|
+
host = URI.parse(request.headers['referer']).host
|
41
|
+
if host == request.host || !/^(.*).#{request.host.sub('www','')}/.match(host).nil?
|
43
42
|
|
44
43
|
route = Rails.application.routes.recognize_path(request.headers['referer'].delete_suffix('/'))
|
45
44
|
group = route[:controller]
|