Skip to content

Commit ad4ed72

Browse files
Merge pull request #576 from plausible/metmarkosaric-patch-27
Looker Studio doc
2 parents b5da400 + d44c66b commit ad4ed72

12 files changed

+81
-11
lines changed

docs/data-pipelines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ By using our official WordPress plugin, you can view your Plausible stats dashbo
1818

1919
## Looker Studio
2020

21-
There is a Plausible connector for [Looker Studio (formerly Google Data Studio)](https://www.epilocal.com/products/plausible-data-studio-connector/).
21+
There is an official Plausible connector for [Looker Studio (formerly Google Data Studio)](looker-studio.md).
2222

2323
## Airbyte connector
2424

docs/integration-guides.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ Add Plausible records to [Prometheus](https://prometheus.io) to use with [Grafan
248248

249249
[plausibler](https://github.com/giocomai/plausibler): R wrapper for the Plausible API. Built and maintained by [Giorgio Comai](https://github.com/giocomai/).
250250

251+
## Readymag
252+
253+
Here's [how to add the script to your Readymag website](https://help.readymag.com/hc/en-us/articles/26933451909019-Plausible)
254+
251255
## Ruby
252256

253257
[Plausible API Ruby Gem](https://github.com/dailytics/plausible_api): This is a simple wrapper to read the Plausible API with Ruby. Built and maintained by [Dailytics](https://dailytics.com/).
@@ -324,13 +328,9 @@ A [TypeDoc Plausible plugin](https://typedoc-plausible.8hob.io/) that integrates
324328

325329
[How to add the script to your Wix site](wix-integration.md)
326330

327-
## Readymag
328-
329-
Follow the instructions here: [How to add the script to your Readymag website](https://help.readymag.com/hc/en-us/articles/26933451909019-Plausible)
330-
331331
## Data pipelines, warehouses and other ways of viewing Plausible stats elsewhere
332332

333-
[See this list](data-pipelines.md) for data pipelines, warehouses and other ways of viewing Plausible stats elsewhere.
333+
[See this list](data-pipelines.md) for data pipelines, warehouses and other ways of viewing Plausible stats elsewhere. For instance, our [stats API](stats-api.md), [official WordPress plugin](https://plausible.io/wordpress-analytics-plugin) and [official Google Looker Studio connector](looker-studio.md).
334334

335335
---
336336

docs/looker-studio.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Looker Studio Connector
3+
---
4+
5+
import useBaseUrl from '@docusaurus/useBaseUrl';
6+
7+
In order to focus on simplicity and speed, Plausible Analytics does not support the native ability to create custom reports directly in our dashboard. However, there are some advanced uses where creating custom reports is necessary.
8+
9+
For this reason, we have created an official integration with the free data visualization tool, Google Looker Studio (formerly known as Data Studio). You can use our Looker Studio connector to build custom reports with your Plausible Analytics data.
10+
11+
<img alt="Plausible Analytics Looker Studio template" src={useBaseUrl('img/plausible-looker-studio.png')} />
12+
13+
Here's how to get started with our official Looker Studio connector.
14+
15+
## Connect to Looker Studio
16+
17+
Connecting your Plausible Analytics account to Looker Studio is simple and can be done in a matter of minutes. First, you select our connector as a new data source in Looker Studio. You can either select it from the [Looker Studio connector gallery](https://lookerstudio.google.com/data) or you can follow [this direct link](https://lookerstudio.google.com/datasources/create?connectorId=AKfycbz88iSK4B6V-VoaiwocFu2dDp3CBRM0arAZoDjQ97SroAt9RtzgS6z3UCxpjJDi0ieVjQ).
18+
19+
Once you have selected the data source, you will be prompted to authorize the connector to access your Google account.
20+
21+
<img alt="Authorize the Plausible connector" src={useBaseUrl('img/source-looker.png')} />
22+
23+
The only permission that will be asked for is to make an external API request, which is how the connector pulls data from [the Plausible Analytics Stats API](stats-api.md).
24+
25+
:::note
26+
Our connector is currently in beta and undergoing a review by Google. This is why you see the note stating: "This connector has not been verified or reviewed"
27+
:::
28+
29+
## Insert your Plausible stats API key
30+
31+
After authorizing your Google account, you will be prompted to enter your Plausible Analytics stats API key. You can create a new API key for our stats API by going to your Plausible Analytics account, navigating to "**Account Settings**" and clicking on the section called "**API Keys**".
32+
33+
Click "**New API Key**" and be sure you save the result as you will only see the key once. However, you can always delete the key and create a new one if you no longer remember what it is.
34+
35+
<img alt="Create your Plausible stats API key" src={useBaseUrl('img/create-stats-api-key-looker.png')} />
36+
37+
Then you will just need to paste your API key into Looker Studio where you are prompted to enter your key. Once you do this, you will see a dropdown menu with all of the Plausible Sites connected to your account.
38+
39+
<img alt="Insert your Plausible API key" src={useBaseUrl('img/plausible-api-looker.png')} />
40+
41+
This means you have successfully linked your Plausible Analytics account to Looker Studio.
42+
43+
## Configure the Plausible Looker Studio connector
44+
45+
You can select one or more of your Plausible sites to create a custom report. Simply tick the box next to each site that you want to include data for.
46+
47+
At this stage, you can check to "**Allow "Plausible Site(s)" to be modified in reports**". This option is something Looker Studio presents by default. It enables you to have a report with a drop-down to toggle your Plausible site(s) directly in the report. Not checking this box would disable that ability.
48+
49+
You also have the ability to choose whether or not you want to constantly pull data in real-time by checking the "**Data Refreshed in Real-time**" box. Looker Studio does not refresh automatically but what this does is it will force Looker Studio to pull fresh data whenever you make a change to your report, say changing the order of a table or adding new metrics.
50+
51+
If this box is not checked, the connector will by default cache data for 6 hours. This will make your reports quicker and will limit the number of API requests used by the connector which for most Plausible plans are limited to 600 per hour. If you have special needs for more API requests per hour, please [contact us](https://plausible.io/contact) to request more capacity.
52+
53+
Once these options are configured, you can click "**Connect**" and you will see a list of all available fields for data and metrics that you can pull from Plausible.
54+
55+
<img alt="Configure the Plausible Looker Studio connector" src={useBaseUrl('img/choose-site-and-connect-looker.png')} />
56+
57+
## Create your custom reports
58+
59+
Finally, you can either click on "**Create Report**" or "**Explore**" to begin using your Plausible data in Looker Studio. Explore is best for ad-hoc data exploration while reports are best for creating set reports that you can share with others.
60+
61+
That's it! You're ready to start creating your custom reports using the Plausible Analytics data.
62+
63+
You can explore this [simple report](https://lookerstudio.google.com/s/gm8gS_IpBiQ) and this [advanced report](https://lookerstudio.google.com/s/ltrWC2jaK4Q) that we’ve created in Looker Studio which you can use as a template to start building your own custom reports.
64+
65+
If you need some help on how to use Looker Studio, take a look at [our Looker Studio beginner's guide](https://plausible.io/blog/google-looker-studio-guide).
66+
67+
<img alt="Create your custom reports" src={useBaseUrl('img/create-report-looker.png')} />

docs/stats-api.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,27 @@ Take a look at our [Events API Reference](events-api.md) if you want to record p
1919

2020
## Authentication
2121

22-
You can obtain an API key for your account by going to your user settings page [plausible.io/settings](https://plausible.io/settings).
22+
You can create a new stats API key by going to your Plausible Analytics account, navigating to "**Account Settings**" and clicking on the section called "**API Keys**". The key will be valid for all sites that you own.
2323

24-
After creating a token, you can authenticate your request by sending the token in the Authorization header of your request.
24+
Click "**New API Key**" and be sure you save the result as you will only see the key once. However, you can always delete the key and create a new one if you no longer remember what it is.
25+
26+
After creating an API key, you can authenticate your request by sending the key in the Authorization header of your request.
2527

2628
### Example curl request
2729

28-
In the following request, replace YOUR-TOKEN with a reference to your token and site_id value with your domain.
30+
In the following request, replace `YOUR-KEY` with a reference to your stats API key and `site_id` value with your domain as you've added it to your Plausible account.
2931

3032
```bash
3133
curl \
3234
--request POST \
3335
# highlight-next-line
34-
--header 'Authorization: Bearer YOUR-TOKEN' \
36+
--header 'Authorization: Bearer YOUR-KEY' \
3537
--header 'Content-Type: application/json' \
3638
--url 'https://plausible.io/api/v2/query' \
3739
--data '{ "site_id": "dummy.site", "metrics": ["visitors"], "date_range": "7d" }'
3840
```
3941

40-
API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, please contact us to request more capacity.
42+
API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, [please contact us](https://plausible.io/contact) to request more capacity.
4143

4244
## Request structure
4345

sidebars.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
'subdomain-hostname-filter',
4141
'metrics-definitions',
4242
'keyboard-shortcuts',
43+
'looker-studio',
4344
'dashboard-faq',
4445
{
4546
type: 'category',

static/img/authorize-looker.png

164 KB
Loading
111 KB
Loading

static/img/create-report-looker.png

85.1 KB
Loading
42.1 KB
Loading

static/img/plausible-api-looker.png

106 KB
Loading
105 KB
Loading

static/img/source-looker.png

73.5 KB
Loading

0 commit comments

Comments
 (0)