diff --git a/millions_v1.js b/millions_v1.js index 1bb60c4..3240a9f 100644 --- a/millions_v1.js +++ b/millions_v1.js @@ -20,7 +20,7 @@ search: match[6], hash: match[7] } || { href: href }; - } + }; var parseQuery = function(queryString) { var query = {}; var pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&'); @@ -29,7 +29,7 @@ query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || ''); } return query; - } + }; var selfUrl = getLocation(document.location.href); // commented out for now // if (selfUrl=='localhost') return; @@ -46,7 +46,7 @@ if (Q.utm_source || Q.ref || Q.pk_campaign) { bonzUrl += '&ref=' + encodeURIComponent(Q.utm_source || Q.ref || Q.pk_campaign); } else if (Q.fbclid) { - bonzUrl += '&ref=facebook'; + bonzUrl += '&ref=facebook.com'; } else if (refUrl.hostname && selfUrl.hostname != refUrl.hostname) { bonzUrl += '&ref=' + encodeURIComponent(refUrl.hostname + refUrl.pathname); }