|
|
@ -170,11 +170,13 @@ function composeUrl (config) { |
|
|
|
const _id = metaMetricsId && !excludeMetaMetricsId ? `&_id=${metaMetricsId.slice(2, 18)}` : '' |
|
|
|
const _id = metaMetricsId && !excludeMetaMetricsId ? `&_id=${metaMetricsId.slice(2, 18)}` : '' |
|
|
|
const rand = `&rand=${String(Math.random()).slice(2)}` |
|
|
|
const rand = `&rand=${String(Math.random()).slice(2)}` |
|
|
|
const pv_id = currentPath ? `&pv_id=${ethUtil.bufferToHex(ethUtil.sha3(currentPath)).slice(2, 8)}` : '' |
|
|
|
const pv_id = currentPath ? `&pv_id=${ethUtil.bufferToHex(ethUtil.sha3(currentPath)).slice(2, 8)}` : '' |
|
|
|
const uid = metaMetricsId && !excludeMetaMetricsId |
|
|
|
|
|
|
|
? `&uid=${metaMetricsId.slice(2, 18)}` |
|
|
|
let uid = '' |
|
|
|
: excludeMetaMetricsId |
|
|
|
if (excludeMetaMetricsId) { |
|
|
|
? '&uid=0000000000000000' |
|
|
|
uid = '&uid=0000000000000000' |
|
|
|
: '' |
|
|
|
} else if (metaMetricsId) { |
|
|
|
|
|
|
|
uid = `&uid=${metaMetricsId.slice(2, 18)}` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return [ base, e_c, e_a, e_n, cvar, action_name, urlref, dimensions, url, _id, rand, pv_id, uid, new_visit ].join('') |
|
|
|
return [ base, e_c, e_a, e_n, cvar, action_name, urlref, dimensions, url, _id, rand, pv_id, uid, new_visit ].join('') |
|
|
|
} |
|
|
|
} |
|
|
|