             }
             
             // get host name from referrer
-            var ref:URL = new URL( _referrer );
-            var hostname:String = ref.hostName;
+            var ref:uri = new uri( _referrer );
+            var hostname:String = ref.host;
             var content:String  = ref.path;
+            
+            if( content == "" ) { content = "/"; } //fix empty path
             
             if( hostname.indexOf( "www." ) == 0 )
             {

    import com.google.analytics.core.OrganicReferrer;
    import com.google.analytics.debug.DebugConfiguration;
    import com.google.analytics.debug.VisualDebugMode;
    import com.google.analytics.utils.Protocols;
    import com.google.analytics.utils.URL;
    import com.google.analytics.utils.Variables;
    import com.google.analytics.v4.Configuration;
    
    /**
     * The CampaignManager class.

                return camp;
            }
            
            var ref:uri = new uri( _referrer );
            var name:String;
            
            if( (ref.host != "") && (ref.host.indexOf(".") > -1) )
            {
                var tmp:Array = ref.host.split( "." );
                
                switch( tmp.length )
                {
                    case 2:
                    name = tmp[0];
                    break;
                    
                    case 3:
                    name = tmp[1];
                }
            }
            
