Trakkay – Basic Onpage Analytics (Vanilla JS)

function Trakkay(){
	this.URL = document.URL;
	this.referrer = document.referrer;
	//this.host = document.location.host;
	this.hostname = document.location.hostname;
	this.protocol = document.location.origin;
	this.pathname = document.location.pathname;
	this.protocol = document.location.protocol;
	this.title = document.title;
	//browser navigation
	//this.appName = window.navigator.appName;//Mozilla
	this.appVersion = window.navigator.appVersion;
	//this.appCodeName = window.navigator.appCodeName;//Netscape
	this.appLanguage = window.navigator.language;
	this.userAgent = window.navigator.userAgent;
	this.vendor = window.navigator.vendor;
	this.platform = window.navigator.platform;

	this.width = screen.width;
	this.height = screen.height;
	this.availWidth = screen.availWidth;
	this.availHeight = screen.availHeight;
	this.colorDepth = screen.colorDepth;
	this.pixelDepth = screen.pixelDepth;

	this.sessionCount = 0;
	this.pageCount = 0;
}

var t_page = new Trakkay();
console.log(t_page);

AA Specific

sessionStorage['com.adobe.reactor.core.visitorTracking.trafficSource']

Posted

in

,

by

Tags: