each page visited, track the URL • HTML5 Local Storage as primary storage • Cookies as secondary storage Human IdenKty: Tracking Anonymous Users Program Overview
var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' '){ c = c.substring(1, c.length) }; if (c.indexOf(nameEQ) == 0){ return c.substring(nameEQ.length, c.length); } } return null; }
{ var cookieVal = readCookie(storeName); var value = ((cookieVal === null) ? window.locaKon : cookieVal + window.locaKon); var days = 1; var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); var expires = "; expires=" + date.toGMTString(); document.cookie = storeName + "=" + value + "|" + expires + "; path=/"; } else { //Use Local Storage } Tracking Anonymous Users with Cookies
oldest results when storage fills • Build categorizaKon mapping prior to storage to save space (more on this later) Human IdenKty: Tracking Anonymous Users Next Steps / Improvements
as a way to keep us safe …it has lead to some horrible parts of history but it is also a foundaKon of many of our social relaKonships Social Grouping: FoundaKon in Tribalism
all URLs from the previous program. • Obtain content category for page. • Categorize user interest. Social Grouping: Group Programming Primer Program Overview
“My privacy concerns are not trite. They are linked to my actual physical safety” -‐-‐Harriet Jacobs (Gizmodo) Social IdenKty Fail: Personal Safety When Social Discovery Impacts Personal Safety
“Path Uploads Your EnKre iPhone Contact List By Default” -‐-‐Mark Hachman (PCMag) Social IdenKty Fail: Privacy Concerns When Making Things Easy Impairs Privacy
“How Target Figured Out A Teen Girl Was Pregnant Before Her Father Did” -‐-‐Kashmir Hill (Forbes) Social IdenKty Fail: The Fine Line The Fine Line Between Insighaul and Creepy
more than just a login AuthenKcaKon is just the first step Find the tool that: – Has the raw data that you need – Works with your business IdenKty Programming Core Concepts