     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;
+    
+    import core.uri;
     
     /**
      * The CampaignManager class.

                return true;
            }
            
            if( referrer.indexOf("://") > -1 )
            {
                var url:URL = new URL( referrer );
                
                if( (url.protocol == Protocols.file) ||
                    (url.protocol == Protocols.none) )
                    {
                    return true;
                    }
            }
            
            return false;
        }
        
        /**
         * Checks if the document referrer is from the google custom search engine.
         * @private
         * @return <code class="prettyprint">true</code> if the referrer is from google custom search engine.
         */
        public static function isFromGoogleCSE( referrer:String, config:Configuration ):Boolean
        {
            var url:URL = new URL( referrer );
            
            // verify that the referrer is google cse search query.
            if( url.hostName.indexOf( config.google ) > -1 )
            {
                if( url.search.indexOf( config.googleSearchParam+"=" ) > -1 )
                {
                    // check if this is google custom search engine.
                    if( url.path == "/"+config.googleCsePath )
                    {
                        return true;
                    }
                }
            }
            

                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];
                }
            }
            
