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

Self hosted configuration uses plausible.io #3

Closed
markatk opened this issue Aug 1, 2021 · 1 comment
Closed

Self hosted configuration uses plausible.io #3

markatk opened this issue Aug 1, 2021 · 1 comment

Comments

@markatk
Copy link
Contributor

markatk commented Aug 1, 2021

If you enable self-hosted in the configuration the included script is still loaded from the main plausible.io site and thus doesn't work. Below is an example when a custom plausible instance is configured

<script src="https://plausible.io/js/plausible.js" async defer data-domain="example.com"></script>

Configuration:

enabled: true
active: true
data_domain: example.com
custom_event_goals: false
outbound_link_tracking: false
public_dashboard_visible: false
public_dashboard_url: null
self_hosting: true
custom_domain: https://plausible.example.com
@markatk
Copy link
Contributor Author

markatk commented Aug 1, 2021

I created a pull request #4 to fix the issue. Tested on my instance and resolves to the correct self hosted configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant