Skip to content

Commit 5a580e7

Browse files
committed
Add referrer to the TS
1 parent 8dd85c4 commit 5a580e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/VISH.TrackingSystem.js

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ VISH.TrackingSystem = (function(V,$,undefined){
1414
var _environment;
1515
//User agent (used to filter bots)
1616
var _user_agent;
17+
//Referrer
18+
var _referrer;
1719
//Stores the cronology
1820
var _chronology;
1921
//Stores specific information about the RecommenderSystem (RS)
@@ -66,6 +68,7 @@ VISH.TrackingSystem = (function(V,$,undefined){
6668
_environment.vish = V.Status.getIsInVishSite();
6769
_environment.iframe = V.Status.getIsInIframe();
6870
_environment.developping = sessionOptions.developping;
71+
_referrer = sessionOptions.referrer;
6972
}
7073

7174
_chronology = [];
@@ -213,6 +216,10 @@ VISH.TrackingSystem = (function(V,$,undefined){
213216
data["actor_id"] = _user.id;
214217
}
215218

219+
if(typeof _referrer != "undefined"){
220+
data["referrer"] = _referrer;
221+
}
222+
216223
if(typeof _rTrse != "undefined"){
217224
data["tracking_system_entry_id"] = _rTrse;
218225
}

0 commit comments

Comments
 (0)