Hi!
Is it possible to export transition data in the same way that you can export page data (as a csv file for example)?
Thanks,
/Staffan
Hi!
Is it possible to export transition data in the same way that you can export page data (as a csv file for example)?
Thanks,
/Staffan
Hi,
The transition data isn’t really something you can represent in a two-dimensional table. But the API still lets you export all the data in JSON format which allows for proper nesting:
https://matomo.example/index.php?module=API&method=Transitions.getTransitionsForPageUrl&pageUrl=https://www.example.com/&idSite=1&period=month&date=today&format=JSON&token_auth=the_token&force_api_session=1
{
"date": "Nov 2020",
"previousPages": [
{
"label": "example.com/somepage/",
"referrals": 1
}
],
"previousSiteSearches": [],
"pageMetrics": {
"loops": 0,
"pageviews": 20,
"entries": 19,
"exits": 14
},
"followingPages": [
{
"label": "example.com/some_other_page/",
"referrals": 5
},
{
"label": "example.com/any_page/",
"referrals": 1
}
],
"followingSiteSearches": [],
"outlinks": [],
"downloads": [],
"referrers": [
{
"label": "Direct Entries",
"shortName": "direct",
"visits": 8,
"details": []
},
{
"label": "From Search Engines",
"shortName": "search",
"visits": 7,
"details": []
},
{
"label": "From Websites",
"shortName": "website",
"visits": 3,
"details": [
{
"label": "https://external.page.example",
"referrals": "1"
},
{
"label": "https://external.page.example",
"referrals": "1"
},
{
"label": "https://external.page.example",
"referrals": "1"
}
]
},
{
"label": "From Social Networks",
"shortName": "social",
"visits": 1,
"details": [
{
"label": "Facebook",
"referrals": "1"
}
]
}
]
}
Ok, I will try that. Thanks!