universal-track-manager 0.7.7 → 0.7.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238c76e4d3f9f6e21f15142ae4c8d983db140aa2095ad77270e16556fa574193
|
4
|
+
data.tar.gz: 16299e6c14303ca631c2b31cbf0f28518e1bbdd5ec2661edee399d8a9bdd0d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0fc3bda7897348becab7b7c99e1952a57024bfec130cd91d7a039823baf5d8bca8580123c5dd69e6b649dc007734c5911e31625239b925e151a9626e925271
|
7
|
+
data.tar.gz: bf5c71059981fef0acc32bd65c8bad5acefafbdac200ea8c1c2e01c97621da23afbb5f3cdea134f6536968e2af1d4a00a54155fc32f2ba610b1b3a95108efb22
|
@@ -55,14 +55,28 @@ module UniversalTrackManagerConcern
|
|
55
55
|
begin
|
56
56
|
existing_visit = UniversalTrackManager::Visit.find(session['visit_id'])
|
57
57
|
|
58
|
-
|
58
|
+
if any_utm_params? && !existing_visit.matches_all_utms?(permitted_utm_params)
|
59
|
+
evict_visit!(existing_visit)
|
60
|
+
end
|
61
|
+
|
62
|
+
if existing_visit.ip_v4_address != ip_address
|
63
|
+
evict_visit!(existing_visit)
|
64
|
+
|
65
|
+
end
|
59
66
|
|
60
|
-
|
61
|
-
|
67
|
+
if existing_visit.browser &&
|
68
|
+
existing_visit.browser.name != user_agent
|
69
|
+
evict_visit!(existing_visit)
|
70
|
+
end
|
62
71
|
|
63
|
-
|
72
|
+
|
73
|
+
if (UniversalTrackManager.track_http_referrer? &&
|
74
|
+
(request.referrer &&
|
75
|
+
!request.referrer.include?(request.host) &&
|
76
|
+
existing_visit.referer != request.referer))
|
64
77
|
evict_visit!(existing_visit)
|
65
78
|
end
|
79
|
+
|
66
80
|
existing_visit.update_columns(:last_pageload => Time.now) if !@visit_evicted
|
67
81
|
rescue ActiveRecord::RecordNotFound
|
68
82
|
# this happens if the session table is cleared or if the record in the session
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: universal-track-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.7
|
4
|
+
version: 0.7.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Fleetwood-Boldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.4.19
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: A gem to track visitors and their UTMs to your website.
|