C# Class ConstructorIO.Tracker

Mostra file Open project: Constructor-io/constructorio-csharp Class Usage Examples

Public Methods

Method Description
TrackClickThrough ( string Term, string AutocompleteSection, HashArgs ExtraParams = null ) : bool

Tracks the fact that someone clicked through a search result on the site.

TrackClickThroughAsync ( string Term, string AutocompleteSection, HashArgs ExtraParams = null ) : Task

Tracks the fact that someone clicked through a search result on the site.

TrackConversion ( string Term, string AutocompleteSection, string ItemName = null, HashArgs ExtraParams = null ) : bool

Tracks the fact that someone converted on your site. Can be for any definition of conversion, whether someone buys a product or signs up or does something important to your site.

TrackConversionAsync ( string Term, string AutocompleteSection, string ItemName = null, HashArgs ExtraParams = null ) : Task

Tracks the fact that someone converted on your site. Can be for any definition of conversion, whether someone buys a product or signs up or does something important to your site.

TrackSearch ( string Term, HashArgs ExtraParams = null ) : bool

Tracks the fact that someone searched on your site. There's no autocompleteSection parameter because if you're searching, you aren't using an autocomplete.

TrackSearchAsync ( string Term, HashArgs ExtraParams = null ) : Task

Tracks the fact that someone searched on your site. There's no autocompleteSection parameter because if you're searching, you aren't using an autocomplete.

Private Methods

Method Description
CreateTrackingRequest ( APIRequestType APIPath, string Method, HashArgs ExtraArgs ) : ConstructorIORequest
Tracker ( ConstructorIOAPI ParentAPI ) : System

Method Details

TrackClickThrough() public method

Tracks the fact that someone clicked through a search result on the site.
public TrackClickThrough ( string Term, string AutocompleteSection, HashArgs ExtraParams = null ) : bool
Term string
AutocompleteSection string
ExtraParams HashArgs Any extra parameters to be included in the body of the
return bool

TrackClickThroughAsync() public method

Tracks the fact that someone clicked through a search result on the site.
public TrackClickThroughAsync ( string Term, string AutocompleteSection, HashArgs ExtraParams = null ) : Task
Term string
AutocompleteSection string
ExtraParams HashArgs
return Task

TrackConversion() public method

Tracks the fact that someone converted on your site. Can be for any definition of conversion, whether someone buys a product or signs up or does something important to your site.
public TrackConversion ( string Term, string AutocompleteSection, string ItemName = null, HashArgs ExtraParams = null ) : bool
Term string
AutocompleteSection string
ItemName string
ExtraParams HashArgs
return bool

TrackConversionAsync() public method

Tracks the fact that someone converted on your site. Can be for any definition of conversion, whether someone buys a product or signs up or does something important to your site.
public TrackConversionAsync ( string Term, string AutocompleteSection, string ItemName = null, HashArgs ExtraParams = null ) : Task
Term string
AutocompleteSection string
ItemName string
ExtraParams HashArgs
return Task

TrackSearch() public method

Tracks the fact that someone searched on your site. There's no autocompleteSection parameter because if you're searching, you aren't using an autocomplete.
public TrackSearch ( string Term, HashArgs ExtraParams = null ) : bool
Term string the term that someone searched.
ExtraParams HashArgs
return bool

TrackSearchAsync() public method

Tracks the fact that someone searched on your site. There's no autocompleteSection parameter because if you're searching, you aren't using an autocomplete.
public TrackSearchAsync ( string Term, HashArgs ExtraParams = null ) : Task
Term string the term that someone searched.
ExtraParams HashArgs
return Task