Skip to content

Commit

Permalink
Add referrer to the TS
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Jan 23, 2015
1 parent 8dd85c4 commit 5a580e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/VISH.TrackingSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ VISH.TrackingSystem = (function(V,$,undefined){
var _environment;
//User agent (used to filter bots)
var _user_agent;
//Referrer
var _referrer;
//Stores the cronology
var _chronology;
//Stores specific information about the RecommenderSystem (RS)
Expand Down Expand Up @@ -66,6 +68,7 @@ VISH.TrackingSystem = (function(V,$,undefined){
_environment.vish = V.Status.getIsInVishSite();
_environment.iframe = V.Status.getIsInIframe();
_environment.developping = sessionOptions.developping;
_referrer = sessionOptions.referrer;
}

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

if(typeof _referrer != "undefined"){
data["referrer"] = _referrer;
}

if(typeof _rTrse != "undefined"){
data["tracking_system_entry_id"] = _rTrse;
}
Expand Down

0 comments on commit 5a580e7

Please sign in to comment.