-
Notifications
You must be signed in to change notification settings - Fork 0
space parameter
The &space={s:#YourSiteID#} parameter allows you to get data relative to your site.
Example: to know the number of visits per page on your site:
https://apirest.atinternet-solutions.com/data/v2/json/getData?&columns={d_page,m_visits}&sort={m_visits}&space={s:#YourSiteID#}&period={R:{D:'-1'}}&max-results=20
Please refer to this note if you’re using SSO to login to AT Internet services.
The &space={l2s:{s:#YourSiteID#,l2:#YourLevel2SiteID#}} parameter allows you to get data relative to a level 2 site (sub-site) of your site.
Example: to know the visit sources of a sub-section of your site:
https://apirest.atinternet-solutions.com/data/v2/json/getData?&columns={d_source,m_visits}&sort={m_visits}&space={l2s:{s:#YourSiteID#,l2:#YourLevel2SiteID#}} &period={R:{D:'-1'}}&max-results=20
Please refer to this note if you’re using SSO to login to AT Internet services.
The &space={s:{XXXXXX,YYYYYY,ZZZZZZ}} parameter allows to you to get data relative to multiple level 1 sites at once.
Example: to know all visits generated on all my websites, mobile sites and applications in the same API call:
https://apirest.atinternet-solutions.com/data/v2/json/getData?&columns={d_site,m_visits}&sort={m_visits}&space={s:{XXXXXX,YYYYYY,ZZZZZZ}}&period={R:{D:'-1'}}&max-results=20
Please refer to this note if you’re using SSO to login to AT Internet services.
Please note that certain dimensions are not allowed on multi-site calls, e.g. site custom variables and any other dimensions that are site-related.
It is possible to call up to 100 sites at once.
Multi-site queries can’t be run in real time and can’t be segmented.
Last update: 06/01/2021
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android