Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Always send guid=ON #4

Merged
merged 3 commits into from

2 participants

@hannesgassert

Google's own examples for server-side GA tracking always send guid=ON, as do other such implementations. It's unclear what the effect of this is, but I suggest we follow Google's example.

See e.g https://developers.google.com/analytics/devguides/collection/other/mobileWebsites

@jgallen23 jgallen23 merged commit 285f5ca into from
@jgallen23
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 11, 2012
  1. @hannesgassert
  2. @hannesgassert

    Always send guid=ON

    hannesgassert authored
  3. @hannesgassert

    Merging upstream

    hannesgassert authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/ga.js
View
1  lib/ga.js
@@ -26,6 +26,7 @@ GoogleAnalytics.prototype._makeRequest = function(obj, cb) {
var today = new Date().getTime().toString();
obj.utmac = this.ua;
obj.utmn = today;
+ obj.guid = "ON";
obj.utmv = "1";
obj.utmr= "-";
obj.utmcc = "__utma="+userId+"."+Math.round(Math.random()*1000000)+"."+today+"."+today+"."+today+".3; __utmz="+userId+"."+today+".1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);";
Something went wrong with that request. Please try again.