- Joined
 - Apr 5, 2017
 
- Messages
 - 133
 
- Likes
 - 90
 
- Degree
 - 0
 
I'm using @Nat's super simple, affiliate masking code- which was so clean I was able to do extend functions well beyond Amazon. Consider this payment in kind.
Here's how you can enable user-id tracking without having to setup user accounts on your CMS, in just one (or two) lines.
	
	
	
		
I already use freegeoip for other things, but you can use other ip services like ipinfo.io or whatever to work too.
				
			Here's how you can enable user-id tracking without having to setup user accounts on your CMS, in just one (or two) lines.
		Code:
	
	$.getJSON('https://freegeoip.net/json/', function(data) {
        ga('set', 'userId', data.ip);
}
	I already use freegeoip for other things, but you can use other ip services like ipinfo.io or whatever to work too.