Go to Visitors > Time > Weeks and add Visits, Qty Orders, Conversion Rate %.
Set in the calendar dynamic time frame Current Year until Yesterday.
In the upper right-hand corner, select the menu and Copy JSON Configuration.
Paste the JSON into an editor.
Replace all the single quotation marks (") with double quotation marks ("").
4
Excel file configuration
JSON_API_powerBI_demo_version1_5
28.66 KB
and open the example sheet.
Enable external data connections
Under the Data tab, select Get Data > Launch Power Query Editor.
Change Privacy Settings
Window OS:
Go to File > Options > Settings > Query Options > Current WorkBook > Privacy
Under Privacy Levels, Select Ignore the Privacy Levels and Potentially Improve Performance. Please note this could potentially expose sensitive data.
Mac OS:
Go to Options > Project > Privacy
Activate Allow combining data from multiple sources
Right-click ongetToken to use the advanced editor.
Replace the placeholders with your clientID and secret.
In getAnalysisData, right click to get the advanced editor.
Paste your JSON into queryAsJson = "< your JSON >".
Depending on the Excel version, you may see hint boxes or a loading hint. In most cases, this does not affect the functionality, so you can simply continue.
Click Close and Load.
5
Excel file update
Click Data > Refresh All to update data.
In our example file, a new token is automatically requested every time you refresh data. You'll need a new token to refresh the data only if you use a different file.
Because your ID and Secret are saved in the file, be careful about sharing it directly with others.
Was this article helpful?
Thank you for your feedback! Our team will get back to you