-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat: Add Plausible/Analytics to MVP to track page view/stats #287
Comments
Direct link: https://plausible.io/mvp.fly.dev |
PR: #288 |
Going to add documentation for this once it's shipped because want to include some relevant screenshots of the dashboard and graphs. 📈 |
PR: Add plausible analytics issue #287
Merge CI in progress: https://github.com/dwyl/mvp/actions/runs/4102786893 Waiting patiently for this to deploy. ⏳ |
Deployed: https://github.com/dwyl/mvp/actions/runs/4102786893 Now for the moment of truth! 🤞 |
Yep: the Now to check in Plausible.io! |
Waiting ... https://plausible.io/mvp.fly.dev |
The snippet is definitely there and we've refreshed the https://mvp.fly.dev page a few times but still "waiting" ... ⏳ |
Looks like we're just going to have to be patient on this ... ⏳ |
You should all have access to the stats at: https://plausible.io/mvp.fly.dev ⌛ |
Reading https://plausible.io/docs/troubleshoot-integration#keep-seeing-a-blinking-green-dot
|
@SimonLab good catch. that's what I was afraid of. Looks like we're going to have to go down the sub-domain route ... |
This is what I see: https://mvp.fly.dev/ Refused to load the script 'https://plausible.io/js/script.js'
because it violates the following Content Security Policy directive:
"script-src 'self' https://cdnjs.cloudflare.com 'unsafe-eval' 'unsafe-inline'".
Note that 'script-src-elem' was not explicitly set,
so 'script-src' is used as a fallback. |
Reading: https://web.dev/csp ⏳ |
Follow-up PR to add the Content Security Policy: #289 ⏳ |
Patiently waiting for deploy: https://github.com/dwyl/mvp/actions/runs/4103255349 ⏳ |
Deployed. 🚀 |
Looks like I made it worse ... 🤦♂️ 🤷♂️ Refused to load the script
'https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.10.2/cdn.js'
because it violates the following Content Security Policy directive:
"script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' https://plausible.io".
mvp.fly.dev/:1 Refused to load the script 'https://plausible.io/js/script.js'
because it violates the following Content Security Policy directive:
"script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' http://cdnjs.cloudflare.com".
mvp.fly.dev/:1 Refused to load the script 'https://plausible.io/js/script.js'
because it violates the following Content Security Policy directive:
"script-src 'self' https://cdnjs.cloudflare.com 'unsafe-eval' 'unsafe-inline'".
Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. Going to look at how to add multiple domains to the same CSP ... 🧑💻 |
We can try with only the plausible CSP maybe? |
Remove csp for cloudflare to attempt to fix #287 (comment)
Re-opening. Happy to close once this is fully working. 🤞🏼 |
Hmm ... are we at the point where we should open an issue on: https://github.com/plausible/analytics/issues ? |
https://stackoverflow.com/questions/17789426/whitelist-multiple-domains-in-content-security-policy |
Next attempt: #291 |
PR: inline both plausible and cloudflare in CSP #287
Is this better? https://mvp.fly.dev/ Refused to load the script 'https://plausible.io/js/script.js'
because it violates the following Content Security Policy directive:
"script-src 'self' https://cdnjs.cloudflare.com 'unsafe-eval' 'unsafe-inline'".
Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. |
Issue opened: plausible/analytics#2648 🤞 |
PR: Simplify Content-Security-Policy #287
@SimonLab thanks for looking into this. 🤞 |
Fixed with #293 |
Thanks @SimonLab 👌 |
you should all have access to the dashboard. please confirm. 🙏 Don't know how useful this data is going to be ... 🤷♂️ |
Story
As a team of people building an
App
we want to track the stats of who is viewing the
App
and trying it outso that we know if our efforts are producing fruits.
We are currently exploring using
Plausible.io/analytics
for tracking our stats, see: dwyl/technology-stack#127Todo
mvp.fly.dev
to plausibleJS
snippet to theroot
template for themvp
JS
snippetPlausible
dashboard.Going to work on this now with @seaneady on the call. 👌
The text was updated successfully, but these errors were encountered: