Click or drag to resize
ICampaignConversionHitsServiceUpsertCampaignConversionHits Method
Updates number of hits in CampaignConversionHitsCount or inserts new CampaignConversionHitsInfo object if related hit record does not exist yet.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 11.0.0
Syntax
C#
void UpsertCampaignConversionHits(
	int campaignID,
	DataTable calculatedHits,
	DateTime calculatedTo
)

Parameters

campaignID
Type: SystemInt32
ID of CampaignInfo object for which is report calculated.
calculatedHits
Type: System.DataDataTable
Calculated source DataTable to upsert CampaignConversionHitsInfo objects with following table definition:
var table = new DataTable();
table.TableName = "HitsToUpsertTable";
table.Columns.Add("Hits", typeof(int));
table.Columns.Add("CampaignConversionID", typeof(int));
table.Columns.Add("ActivityUTMSource", typeof(string));
The order of column must be preserved.
calculatedTo
Type: SystemDateTime
Datetime of last report processing.
See Also