Skip to content

Commit

Permalink
Send user_agent on the tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Jan 23, 2015
1 parent e22e83d commit a525696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/VISH.TrackingSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ VISH.TrackingSystem = (function(V,$,undefined){
var _device;
//Any additional data (e.g. relevant session ViSH Viewer options)
var _environment;
//User agent (used to filter bots)
var _user_agent;
//Stores the cronology
var _chronology;
//Stores specific information about the RecommenderSystem (RS)
Expand Down Expand Up @@ -52,6 +54,7 @@ VISH.TrackingSystem = (function(V,$,undefined){
_user = new User();
}
_device = V.Status.getDevice();
_user_agent = _device.userAgent;
_rs = new RS();
_environment = {};

Expand Down Expand Up @@ -222,6 +225,7 @@ VISH.TrackingSystem = (function(V,$,undefined){
return {
"app_id": _app_id,
"app_key": _apiKey,
"user_agent": _user_agent,
"data": _composeData()
}
};
Expand Down

0 comments on commit a525696

Please sign in to comment.