glib-web 0.6.4 → 0.6.5
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 +5 -0
- 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: 3d894626cc2535cdc34df54fdd1dffecc54d2eeb990f943aedaa8b9b3a1ef74f
|
4
|
+
data.tar.gz: 6ee401be38c2a676ade288d4dbd76cc8779ed4b51ea596ffaca108907b05561c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad59bde7f303a50f537488130f0c421cd8dc19113590e190c55a7326b5df0b0c13ae2efafce2245c3d17bb542fbf9591723ef61794599d9134c6ba1fe783493
|
7
|
+
data.tar.gz: 062fde34dc5b4793f2751b94bf4ed8303e6719c0270027011afa966f4a948a599d3161b39152ce6647b84ca7b86a1ea1ac0f96817eab749c351f184d975d27c6
|
@@ -35,6 +35,11 @@ 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 (route = Rails.application.routes.recognize_path(request.headers['referer'])) && group.nil? && action.nil?
|
39
|
+
group = route[:controller]
|
40
|
+
action = route[:action]
|
41
|
+
end
|
42
|
+
|
38
43
|
if group && action
|
39
44
|
return { group: group, action: action, segment: segment, placement: placement }
|
40
45
|
end
|