Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats within WP dashboard #17

Closed
metmarkosaric opened this issue Feb 23, 2021 · 3 comments · Fixed by #25
Closed

Stats within WP dashboard #17

metmarkosaric opened this issue Feb 23, 2021 · 3 comments · Fixed by #25
Assignees
Labels
Feature Request New feature or request
Milestone

Comments

@metmarkosaric
Copy link
Collaborator

We now have the stats API ready so wondering if that makes it possible for us to include some of the stats within the WP dashboard? Or does it make the most sense to wait for the embedded mode and then simply embed the complete dashboard? What is the best solution for WordPress?

Stats API docs: https://plausible.io/docs/stats-api
Example of a similar thing done with our API for Statamic:

Eu3O6yzXAAYqJNX

@mehul0810 mehul0810 self-assigned this Feb 24, 2021
@mehul0810 mehul0810 added the Feature Request New feature or request label Feb 24, 2021
@mehul0810 mehul0810 added this to the 1.2.0 milestone Feb 24, 2021
@ukutaht
Copy link
Contributor

ukutaht commented Mar 16, 2021

This will be announced tomorrow but I deployed support for iFrame embed to prod today. Here are the instructions: https://plausible.io/docs/embed-dashboard

Embedding is probably the easiest way to show the whole dashboard along with filters and other interactive behaviour that we have built in the plausible web app.

To make the WP experience even better it would be great to be able to generate a shared link through the API. Then the plugin could provision the shared link and embed it without manual steps by the user. Currently, the user will need to create a shared link on our end and enter it in their WP dashboard.

@LittleBigThing
Copy link
Contributor

Hi,

Just for some more background information around implementing this for the WordPress plugin.

As a (freelance sustainable privacy-conscious :-)) web designer/developer, I have a Plausible subscription that I use for all my clients who want to track their site stats. This is how it evolved for me to provide them the data:

  1. I subscribed them to the monthly (or weekly) email report
  2. I provided them a shared link, sometimes with password protection, when that became available
  3. I wrote a small plugin that allows (me) to paste the shared link in WP, save it there and ‘magically’ enable them viewing the stats in their WP dashboard via an iframe embed.

plausible dashboard without link

plausible dashboard with link

I like this latter approach: the stats are always there in their dashboard, no more lost shared links. :-)

This is a kind of controlled way that works fine in my situation. Since clients don’t have access to my Plausible account, they cannot generate their own shared link. In my case, they don't have complete admin access to their WP dashboard either, but that is often the case for others‘ setups as far as I hear (I don't do it because it is not sustainable in my opinion and in my setup).

How would this work if the API was used to generate a shared link via the plugin? There is currently no authentication needed for the Plausible account to use the plugin as far as I know? This is an advantage in my opinion, but generating a shared link via the plugin would require that.

So +1 for the manual embed approach for now. :-)

(With regard to my plugin, it is quite incomplete for now: it misses validation for the link, which I think would be necessary not enabling pasting any valid url and embed it.)

@ukutaht
Copy link
Contributor

ukutaht commented Mar 22, 2021

How would this work if the API was used to generate a shared link via the plugin?

Yes, this is planned for the API. We have promised another client that it will be available by mid-April.

mehul0810 added a commit that referenced this issue Apr 17, 2021
@mehul0810 mehul0810 mentioned this issue Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants