Skip to content

Instantly share code, notes, and snippets.

View davidjturnbull's full-sized avatar

David Turnbull davidjturnbull

View GitHub Profile
getReferrerTraits = function() {
// Requires: jQuery, jQuery.cookie, segment.io
// TODO: Update referralHost:blackList with your domain, so we only track external referrers.
var analytics_args = [],
analytics_traits,
acquisitionSource,
firstReferrer,
firstCampaign,