Click or drag to resize

OverviewServicesGetAnalyticsTrafficData Method


Retrieves summary of traffic source information on Analytics data of specific publishing target

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<PubTargetAnalyticsData> GetAnalyticsTrafficData(
	string pubTargetId
)

Parameters

pubTargetId
Type: SystemString
Id of publishing target to retrieve Analytic data for

Return Value

Type: XHRServiceResponseGenericPubTargetAnalyticsData

Analytics traffic numbers

Examples

Sample JSON return

JavaScript
{
  "ContentFreezeEndTime": "",
  "ContentFreezeStartTime": "",
  "code": 0,
  "error": null,
  "message": {
    "Error": null,
    "Id": "PublishingTargets/1",
    "Info": [
      {
        "Name": "Pageviews",
        "Value": "10,741"
         },
      {
        "Name": "Uniques Views",
        "Value": "9,295"
      },
      {
        "Name": "Entrances",
        "Value": "5,641"
      },
      {
        "Name": "Bounce Rate",
        "Value": "68.4%"
      },
      {
        "Name": "Average Session Duration",
        "Value": "70.88s"
      }
    ],
    "Name": "Production"
  }
}
Remarks
If publishing target doesn't exist, error will be returned. If publishing target doesn't have analytics enabled, all values will be 0
See Also