Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-03-03 00:35:39 +0300
committermattab <matthieu.aubry@gmail.com>2015-03-03 00:36:02 +0300
commitb017d015c6dd95a568872b4122056ed79acd8654 (patch)
tree7bb72071dec45c7a84023dc97800216b7e1bec14 /js
parent586a33b1b1a3443960ed55b2d3bf9c9123374848 (diff)
Refs #7290 - Set Visitor UUID not as a constructor parameter, but initialise it from first party cookies
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 388b88ce20..2d93b9365f 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2116,7 +2116,7 @@ if (typeof Piwik !== 'object') {
*
* See: Tracker.setTrackerUrl() and Tracker.setSiteId()
*/
- function Tracker(trackerUrl, siteId, uuid) {
+ function Tracker(trackerUrl, siteId) {
/************************************************************
* Private members
@@ -2164,7 +2164,7 @@ if (typeof Piwik !== 'object') {
configUserId = '',
// Visitor UUID
- visitorUUID = uuid || '',
+ visitorUUID = '',
// Document URL
configCustomUrl,
@@ -2647,7 +2647,7 @@ if (typeof Piwik !== 'object') {
// uuid - generate a pseudo-unique ID to fingerprint this user;
// note: this isn't a RFC4122-compliant UUID
- if (!visitorUUID) {
+ if (!visitorUUID.length) {
visitorUUID = hash(
(navigatorAlias.userAgent || '') +
(navigatorAlias.platform || '') +
@@ -2916,6 +2916,7 @@ if (typeof Piwik !== 'object') {
setCookie(refname, JSON2.stringify(attributionCookie), configReferralCookieTimeout, configCookiePath, configCookieDomain);
}
}
+
// build out the rest of the request
request += '&idsite=' + configTrackerSiteId +
'&rec=1' +
@@ -5209,7 +5210,7 @@ if (typeof Piwik !== 'object') {
* @return Tracker
*/
getTracker: function (piwikUrl, siteId) {
- return new Tracker(piwikUrl, siteId, asyncTracker.getVisitorId());
+ return new Tracker(piwikUrl, siteId);
},
/**