touchpoints 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/app/controllers/concerns/touchpoints/tracker.rb +2 -2
- data/lib/touchpoints/version.rb +1 -1
- 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: 5cc931aa689fab740eae518e353e985b6a01d54d361230c3a37f4b3eaad17e50
|
4
|
+
data.tar.gz: c0a7024f9831a790392467364846427af301a31c8120107126e4025fc208a4ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24bc1d0d6dd4cefb44a94f3839647132ae121985222f7499b506cb92f3b6a05c9e43464f00779de155bbccfb38f58a0e516c27381b06ea5c429380b4eed2831
|
7
|
+
data.tar.gz: 9c5811c442ea2a406afe825557866e921d8b0bedd2d443411aad59cb868eaf3e75df04aa63eafdfde30bd754e8a41c7a89a8908a2da5fb84fc019da133daa6c8
|
data/.gitignore
CHANGED
@@ -3,7 +3,7 @@ module Touchpoints
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
|
6
|
+
after_action :_track_touchpoints
|
7
7
|
end
|
8
8
|
|
9
9
|
def _track_touchpoints
|
@@ -31,7 +31,7 @@ module Touchpoints
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def add_if_different(touchpoints)
|
34
|
-
return touchpoints if request.
|
34
|
+
return touchpoints if domain_from(request.original_url) == domain_from(request.referer.to_s)
|
35
35
|
|
36
36
|
last_touchpoint = Hash(touchpoints.last)
|
37
37
|
utm_params = params.permit(*get(:utm_params)).to_h
|
data/lib/touchpoints/version.rb
CHANGED