C# Class CSharpAnalytics.UrchinActivityExtensions

Mostra file Open project: TechSmith/CSharpAnalytics

Public Methods

Method Description
TrackCampaign ( this analyticsClient, string source, string name = null, string medium = null, string term = null, string content = null ) : void

Capture the details of a campaign that will be sent to analytics.

TrackEvent ( this analyticsClient, string action, string category, string label = null, int value = null, bool nonInteraction = false ) : void

Capture the details of an event that will be sent to analytics.

TrackPageView ( this analyticsClient, string title, string page ) : void

Track a new PageView for a given page and title.

TrackSocial ( this analyticsClient, string action, string network, string target = null, string pagePath = null ) : void

Track a social activity being performed.

TrackTimedEvent ( this analyticsClient, string category, string variable, System.TimeSpan time, string label = null ) : void

Capture the details of a timed event that will be sent to analytics.

Method Details

TrackCampaign() public static method

Capture the details of a campaign that will be sent to analytics.
public static TrackCampaign ( this analyticsClient, string source, string name = null, string medium = null, string term = null, string content = null ) : void
analyticsClient this UrchinAnalyticsClient object with queue and configuration set-up.
source string Source of the campaign.
name string Optional name of the campaign.
medium string Optional type of campaign.
term string Optional keyword terms for this campaign.
content string Optional content such as the specific link or content item for this campaign.
return void

TrackEvent() public static method

Capture the details of an event that will be sent to analytics.
public static TrackEvent ( this analyticsClient, string action, string category, string label = null, int value = null, bool nonInteraction = false ) : void
analyticsClient this UrchinAnalyticsClient object with queue and configuration set-up.
action string Action name of the event to send.
category string Category of the event to send.
label string Optional label name of the event to send.
value int Optional numeric value of the event to send.
nonInteraction bool Optional boolean value to be assigned to the NonInteraction property.
return void

TrackPageView() public static method

Track a new PageView for a given page and title.
public static TrackPageView ( this analyticsClient, string title, string page ) : void
analyticsClient this UrchinAnalyticsClient object with queue and configuration set-up.
title string Title of the page.
page string Relative path of the page.
return void

TrackSocial() public static method

Track a social activity being performed.
public static TrackSocial ( this analyticsClient, string action, string network, string target = null, string pagePath = null ) : void
analyticsClient this UrchinAnalyticsClient object with queue and configuration set-up.
action string Social action being performed.
network string Name of the social network being acted upon.
target string Optional target resource being acted upon.
pagePath string Optional path of the page the action occured on.
return void

TrackTimedEvent() public static method

Capture the details of a timed event that will be sent to analytics.
public static TrackTimedEvent ( this analyticsClient, string category, string variable, System.TimeSpan time, string label = null ) : void
analyticsClient this UrchinAnalyticsClient object with queue and configuration set-up.
category string Category of the event to send.
variable string Variable name of the event to send.
time System.TimeSpan Time of the event to send.
label string Optional label name of the event to send.
return void