Collecting data from Magento Advanced Reporting
This guide explains how to collect data from Magento Advanced Reporting. To learn how to collect data from a different data source, go back to the Available data sources in Adverity overview.
Creating a datastream to collect data from Magento Advanced Reporting
The basics of creating a datastream to collect data from any data source are explained in our guide to Creating a datastream. This guide contains information about the specific steps to create a datastream to fetch data from Magento Advanced Reporting.
Authorization: Allow Adverity to access Magento Advanced Reporting
Before creating an Adverity access to Magento Advanced Reporting, perform the following actions:
to give-
Ensure that the account you want to use to give Adverity access to Magento Advanced Reporting has admin rights.
-
Enable Advanced Reporting on the same Magento Advanced Reporting account. For more information, see the Magento Advanced Reporting documentation.
-
Retrieve an access token from Magento Advanced Reporting. For more information, see the Magento Advanced Reporting documentation.
-
Retrieve an Analytics access token from Magento Advanced Reporting by following these steps:
-
Log in to the server that hosts Magento Advanced Reporting. An example of a server URL is as follows:
https://devdocs.magento.com/cloud/env/environments-ssh.html#magento-cli
-
Enter the following into the command line, and run the command to display the Analytics access token:
web@mymagento.0:~$ ./bin/magento config:show | grep analytics/general/token
-
Copy the Analytics access token from the command line.
-
To set up a new Magento Advanced Reporting, follow these steps:
to fetch data from-
In the Authorization step of the datastream wizard, click Access Magento Advanced Reporting using your credentials.
-
Click Next.
-
In Website URL, enter the URL for the Magento Advanced Reporting API.
-
In Access token, enter the access token retrieved from your Magento Advanced Reporting admin account (see step 3 above).
-
In Analytics access token, enter the Analytics access token retrieved from the command line (see step 4 above).
-
Click Authorize.
Configuration: Choose the data you want to collect from Magento Advanced Reporting
To choose what data to collect and customize the Magento Advanced Reporting datastream configuration, follow these steps:
-
(Optional) Rename your datastream.
-
In Report type, select the type of data to collect from Magento Advanced Reporting.
What's next?
-
Apply Data Mapping to your collected data to harmonize data collected from different sources in Adverity.
-
Transform your data to meet your needs by creating and applying transformations to your datastream.
-
Load your data into Explore & Present to visualize your data in Adverity
-
Load your data into an external destination of your choice