Edit in GitHubLog an issue

Virtual report suite examples

Example calls that you can make to the Virtual report suite API endpoint.

Basic filtering using a segment

Creates a virtual report suite that filters data by a segment:

Copied to your clipboard
{
"name": "Basic VRS Creation Example",
"parentRsid": "examplersid",
"segmentList": [
"s300005535_5b7d98bc5ef3a562937dba7e"
],
"dataSchema": "Cache",
"description": "Basic VRS Creation Example description"
}

Timezone override

The parent report suite has a timezone of US/Mountain but the virtual report suite overrides the timezone to use Australia/Sydney (timezone ID of 47). Use the reportsuites/reportsuites/timezones endpoint to obtain all timezone IDs.

Copied to your clipboard
{
"name": "Timezone Override Example",
"parentRsid": "examplersid",
"segmentList": [],
"dataSchema": "Cache",
"timezone" : 47
}

Curated components

Creates a virtual report suite that curates the browser dimension and visits metric:

Copied to your clipboard
{
"name": "Curated Components Example",
"parentRsid": "exampleRsid",
"segmentList": [],
"description": "Curated Components Example description",
"curatedComponents": [{
"componentId": "variables/browser",
"componentType": "dimension",
"curatedName": "Curated dimension example"
},
{
"componentId": "metrics/visits",
"componentType": "metric",
"curatedName": "Curated metric example"
}]
}

Cross-Device Analytics

Creates a virtual report suite that has CDA enabled (once you correctly configure the parent report suite):

Copied to your clipboard
{
"name": "CDA Example",
"parentRsid": "examplersid",
"segmentList": [],
"dataSchema": "Stitched",
"description": "CDA Example description"
}

Custom session timeout

Creates a virtual report suite which overrides the session timeout rules so a new visit starts after 30 minutes of inactivity or when an order event is fired:

Copied to your clipboard
{
"name": "Custom Session Timeout Example",
"parentRsid": "examplersid",
"segmentList": [],
"dataSchema": "CacheAndMid",
"sessionDefinition": [{
"numPeriods": 30,
"func": "inactivity",
"granularity": "minute"
}, {
"func": "beforeEvents",
"events": ["metrics/orders"]
}]
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.