Click or drag to resize

OverviewServicesGetAnalyticsMediumData Method


Retrieves the medium (types of traffic) information of Analytics data of specific publishing target

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<PubTargetAnalyticsPieChart> GetAnalyticsMediumData(
	string pubTargetId
)

Parameters

pubTargetId
Type: SystemString
Id of publishing target

Return Value

Type: XHRServiceResponseGenericPubTargetAnalyticsPieChart

Information of Analytics traffic types and their numbers

Examples

Sample JSON return

JavaScript
{
  "ContentFreezeEndTime": "",
  "ContentFreezeStartTime": "",
  "code": 0,
  "error": null,
  "message": {
    "Error": null,
    "Id": "PublishingTargets/1",
    "Name": "Production",
    "PiePieces": [
      {
        "Data": 6193,
        "Label": "organic"
         },
      {
        "Data": 2710,
        "Label": "(none)"
      },
      {
        "Data": 1035,
        "Label": "email"
      },
      {
        "Data": 521,
        "Label": "referral"
      },
      {
        "Data": 215,
        "Label": "cpc"
      },
      {
        "Data": 41,
        "Label": "(not set)"
      }
    ]
  }
}
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