                 return camp;
             }
             
-            var ref:URL = new URL( _referrer );
-            var name:String = "";
-            
-            if( ref.hostName != "" )
-            {
-                if( ref.hostName.indexOf( "." ) > -1 )
-                {
-                    var tmp:Array = ref.hostName.split( "." );
+            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;
                     
-                    switch( tmp.length)
-                    {
-                        case 2:
-                        // case: http://domain.com
-                        name = tmp[0];
-                        break;
-                        
-                        case 3:
-                        //case: http://www.domain.com
-                        name = tmp[1];
-                        break;
-                    }
+                    case 3:
+                    name = tmp[1];
                 }
             }
             

            }
            
            // get host name from referrer
            var ref:URL = new URL( _referrer );
            var hostname:String = ref.hostName;
            var content:String  = ref.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.Variables;
    import com.google.analytics.v4.Configuration;
    
    import core.uri;
    
    /**
     * The CampaignManager class.
