Piano Analytics: importing historical data
This page explains how to reimport into Eulerian a history of aggregated data from Piano Analytics. The rules common to all reimports are in General information.
The Piano Analytics Import connector retrieves certain types of report. The data synchronised depends on the dimensions and metrics available in Piano Analytics and on the processing the connector applies.
Once the history import is done, you can use the automatic UTM tracking connector to keep using your current taxonomy before you move to Eulerian’s native ad measurement.
Setting up the reimport
To set up the Piano Analytics data reimport, follow the steps below.
Step 1 · Enable the Piano Analytics API
The API must be enabled on your Piano Analytics account.
Step 2 · Create API access
Create API access from your Piano Analytics interface: API Keys (opens in a new window).
Step 3 · Get the API keys
Get the following two values:
ACCESS KEY;SECRET KEY.
Step 4 · Get the site to synchronise
Get the siteId you want to synchronise.
This value is the identifier of the site containing the data to synchronise.
Step 5 · Enable the connector in Eulerian
Once API access is enabled, log in to the Eulerian interface and enable the Piano Analytics Import data reimport connector.
Check when the connector is created
When the reimport connector is created, API access is checked for the target siteId.
This check queries the total number of visits over the period from 1 January 2021 to the connector’s creation date, going no further than 16 March 2023.
The check prevents the creation of connectors that:
- cannot access the API because of a problem with the API credentials;
- cannot synchronise an empty site.
Data synchronised
Overall site-level data
The following metrics are synchronised:
- visits;
- page views;
- unique visitors;
- time spent;
- bounce rate;
- single-page visits.
The data can be segmented by device type.
Page-level data
The following metrics are synchronised:
- page views;
- bounce rate;
- time spent;
- visits;
- single-page visits;
- entry visits.
The following additional dimensions are imported automatically and attached to the imported page:
page_chapter1becomes Page Label 1;page_chapter2becomes Page Label 2;page_chapter3becomes Page Label 3;- the page URL, if available, is retrieved and attached to the page concerned.
The data can be segmented by device type.
Overall data by free traffic source
The following sources are covered:
- direct access;
- referring sites, including Portals & Webmails;
- free social networks;
- natural search / search engine.
The following metrics are synchronised:
- visits;
- page views;
- unique visitors;
- time spent;
- bounce rate;
- single-page visits.
The data can be segmented by device type.
Special processing is applied to the following sources:
- Portals: a Portals referrer is created to group the Portal sites available as a source. The URL of the referring site sits as a sub-item under the main Portals referrer.
- Webmails: a Webmails referrer is created to group the Webmails available as a source. The URL of the referring site sits as a sub-item under the main Webmails referrer.
Keyword-level data for the Natural search source is not available.
Paid acquisition source data
The following sources are covered:
- sponsored links;
- push notifications → classified as Generic channel;
- advertisement → classified as Display channel;
- unclassified campaigns → classified as Display channel.
The following metrics are synchronised:
- visits;
- page views;
- unique visitors;
- time spent;
- bounce rate;
- single-page visits.
The data can be segmented by device type.
We create one campaign per media outlet. The same campaign name can therefore be duplicated across outlets. Simply create a higher-level grouping to get its aggregates back.
If you have specific channels to reimport that are not listed above, please contact us.
Overall geographic data
Data is retrieved at the following levels:
- country;
- region;
- city.
No reference list based on ISO codes is available. The reimport therefore relies on approximations based on how countries, regions and cities are named.
Despite our best efforts, you may not find exactly the same level of detail.
The following metrics are synchronised:
- visits;
- page views;
- unique visitors.
The data can be segmented by device type.
Overall event-level data
Because the taxonomy of click events is not standardised, only limited synchronisation is possible.
The data is carried over into the conversion tracking concept.
Event names are cleaned with the following processing:
- removal of https:/ at the start of the name;
- removal of / at the start of the name.
The following metrics are synchronised:
- clicks.
The data can be segmented by device type.
Data discrepancies
Note
To be as complete as possible, the data queried and synchronised through the connector is in ECO: OFF mode. To make comparisons, you must use the same ECO: OFF mode; otherwise, larger discrepancies may appear.
There may be discrepancies between visit and unique visitor volumes over certain periods.
The data visible after reimport comes from the AT Internet API. In some cases, it may differ from what you see in the Data Query interface.
We cannot make corrections at that level.
Errors
Creating the connector
When you create the connector, if you get this message:
It means the connection details provided are not correct.
When the connector is created, we test access to the Piano API to confirm that it works. If you get this error, the details provided for connecting are wrong.
Solution: please contact Piano support so that they can test the access on their side.
The test run to query the API and the associated rights is as follows:
curl -v -H 'Content-Type: application/json' -X POST -H 'x-api-key: accesskey_secretkey' --data '{"columns":["m_visits"],"max-results":1,"period":{"p1":[{"end":"2023-02-28","start":"2021-01-01","type":"D"}]},"space":{"s":[siteId]},"page-num":1,"sort":["-m_visits"]}' https://api.atinternet.io/v3/data/getData
With the following parameters:
accessKey:321656894d;secretKey:65465sdfds8sdf32268sdf454g;siteId:5623.
The corresponding call is:
curl -v -H 'Content-Type: application/json' -X POST -H 'x-api-key: 321656894d_65465sdfds8sdf32268sdf454g' --data '{"columns":["m_visits"],"max-results":1,"period":{"p1":[{"end":"2023-02-28","start":"2021-01-01","type":"D"}]},"space":{"s":[5623]},"page-num":1,"sort":["-m_visits"]}' https://api.atinternet.io/v3/data/getData