Exemplo n.º 1
0
        /// <summary>
        /// Checks to see if the visitor is in the segment.
        /// </summary>
        /// <param name="segmentAlias">The alias of the segment</param>
        /// <returns>True if the visitor matches the segment</returns>
        public static bool IsInSegment(string segmentAlias)
        {
            if (IsCrawler)
            {
                return(false);
            }
            if (string.IsNullOrEmpty(VisitorId))
            {
                return(false);
            }

            return(TrackingManager.IsVisitorInSegment(VisitorId, segmentAlias));
        }