 
 package com.snowplowanalytics.snowplow.tracker
 {
+	import com.adobe.net.URI;
 	import com.snowplowanalytics.snowplow.tracker.emitter.Emitter;
 	import com.snowplowanalytics.snowplow.tracker.payload.IPayload;
 	import com.snowplowanalytics.snowplow.tracker.payload.SchemaPayload;

		private var hasLocalStorage:Boolean;
		private var hasScriptAccess:Boolean;
		
		/**
		 * @param emitter Emitter to which events will be sent
		 * @param subject Subject to be tracked

				payload.add(Parameter.NAMESPACE, this.namespace);
				payload.add(Parameter.TRACKER_VERSION, this.trackerVersion);
				payload.add(Parameter.EID, Util.getEventId());
				
				//Add page data
				payload.add(Parameter.PAGE_URL, pageUrl);
				payload.add(Parameter.PAGE_TITLE, pageTitle);
				payload.add(Parameter.PAGE_REFR, referrer);
				
				// If timestamp is set to 0, generate one
				payload.add(Parameter.TIMESTAMP,
