C# Class CSharpAnalytics.Protocols.Urchin.UtmeEncoder

Encodes parameter values into the Utme parameter format used by Google Analytics for events and custom variables.
Mostrar archivo Open project: TechSmith/CSharpAnalytics Class Usage Examples

Public Methods

Method Description
Compress ( string uncompressed ) : string[]

Compress an array of values into a Utme compressed array by skipping empty elements and prefixing the next one with an offset.

Encode ( TimedEventActivity timedEventActivity ) : string

Encode a TimedEventActivity using Utme escaping.

Encode ( string prefix ) : string

Encode an array of values with an prefix using Utme compression and escaping.

EscapeValue ( string value ) : string

Escaped a value by replacing single quote, close brace, asterisk and exclamation with their encoded counterparts.

Method Details

Compress() public static method

Compress an array of values into a Utme compressed array by skipping empty elements and prefixing the next one with an offset.
public static Compress ( string uncompressed ) : string[]
uncompressed string Original uncompressed array of values
return string[]

Encode() public static method

Encode a TimedEventActivity using Utme escaping.
public static Encode ( TimedEventActivity timedEventActivity ) : string
timedEventActivity CSharpAnalytics.Activities.TimedEventActivity TimedEventActivity being encoded.
return string

Encode() public static method

Encode an array of values with an prefix using Utme compression and escaping.
public static Encode ( string prefix ) : string
prefix string Prefix of the values being encoded.
return string

EscapeValue() public static method

Escaped a value by replacing single quote, close brace, asterisk and exclamation with their encoded counterparts.
public static EscapeValue ( string value ) : string
value string Unescaped value to escape.
return string