mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
Put everyone in the 'anonymous' pendo bucket regardless of setting
We no longer have the key detailed accounts are indexed on.
This commit is contained in:
@@ -29,30 +29,10 @@ export default ['$rootScope', 'Rest', 'GetBasePath', 'ProcessErrors', '$q', 'Con
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (config.analytics_status === 'detailed') {
|
|
||||||
this.setDetailed(options, config);
|
|
||||||
} else if (config.analytics_status === 'anonymous') {
|
|
||||||
this.setAnonymous(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
return options;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Detailed mode sends:
|
|
||||||
// VisitorId: userid+hash of license_key
|
|
||||||
// AccountId: hash of license_key from license
|
|
||||||
setDetailed: function(options, config) {
|
|
||||||
// config.deployment_id is a hash of the tower license_key
|
|
||||||
options.visitor.id = $rootScope.current_user.id + '@' + config.deployment_id;
|
|
||||||
options.account.id = config.deployment_id;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Anonymous mode sends:
|
|
||||||
// VisitorId: <hardcoded id that is the same across all anonymous>
|
|
||||||
// AccountId: <hardcoded id that is the same across all anonymous>
|
|
||||||
setAnonymous: function (options) {
|
|
||||||
options.visitor.id = 0;
|
options.visitor.id = 0;
|
||||||
options.account.id = "tower.ansible.com";
|
options.account.id = "tower.ansible.com";
|
||||||
|
|
||||||
|
return options;
|
||||||
},
|
},
|
||||||
|
|
||||||
setRole: function(options) {
|
setRole: function(options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user