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.3.169
Syntax public XHRServiceResponseGeneric<PubTargetAnalyticsPieChart> GetAnalyticsMediumData(
string pubTargetId
)
Public Function GetAnalyticsMediumData (
pubTargetId As String
) As XHRServiceResponseGeneric(Of PubTargetAnalyticsPieChart)
public:
virtual XHRServiceResponseGeneric<PubTargetAnalyticsPieChart^>^ GetAnalyticsMediumData(
String^ pubTargetId
) sealed
abstract GetAnalyticsMediumData :
pubTargetId : string -> XHRServiceResponseGeneric<PubTargetAnalyticsPieChart>
override GetAnalyticsMediumData :
pubTargetId : string -> XHRServiceResponseGeneric<PubTargetAnalyticsPieChart>
Parameters
- pubTargetId
- Type: SystemString
Id of publishing target
Return Value
Type:
XHRServiceResponseGenericPubTargetAnalyticsPieChartInformation of Analytics traffic types and their numbers
Examples Sample JSON return
{
"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