Setting up an authorization to Magento Advanced Reporting
On this page
This guide explains how to set up the authorization to Magento Advanced Reporting.
Prerequisites
Before you read this reference, perform all of the following actions:
-
Ensure that the account you use to connect to Magento Advanced Reporting has admin rights assigned.
-
Enable Advanced Reporting on the connected 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.
Retrieving Analytics access token from Magento Advanced Reporting
To retrieve an access token, follow these steps:
-
Log in to the Magento Advanced Reporting admin page. For more information, see the Magento Advanced Reporting documentation.
-
In the secondary menu, click System.
-
Under Extensions, click Integration.
-
Edit the API Connection to view the access token. For more information, see the Magento Advanced Reporting documention.
-
Copy the Access Token.
To retrieve an Analytics access token, follow 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.
Setting up an authorization to Magento Advanced Reporting
To set up an authorization to Magento Advanced Reporting, follow these steps:
-
Go to the Datastreams page.
-
In the top right corner, click + Create datastream.
-
Search for and click Magento Advanced Reporting.
-
Click Setup a new Authorization.
-
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.
-
In Analytics access token, enter the Analytics access token retrieved from the command line.
-
Click Authorize.