Wrong API URL for GTM
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Locate the GTM installation wizard and the code that sets script.dataset.api; start by tracing how the self-hosted domain is made available there. Update the wizard so the generated value uses the deployed self-hosted domain rather than https://plausible.io, then verify the generated snippet for a self-hosted installation.
Written by the indexing model from the issue text.
Description
Past Issues Searched
- I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
- This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
The script.dataset.api for the GTM installation wizard is wrong.
In this case, the Plausible Cloud address is displayed, whereas the domain where the Self-hosted version is deployed should be displayed.
Expected behavior
The GTM installation wizard should be filled using the correct self-hosted domain.
Current value: https://plausible.io/api/event
Correct value: https://plausible.example.com/api/event
Screenshots
Environment
- OS: Ubuntu
- Browser: Firefox
- Browser Version: 136.0.1
- Dominant language
- Elixir
- Stars
- 29.2k
- Forks
- 1.9k
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 39
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plausible/analytics
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
All issues in plausible/analytics
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
phoenixframework/phoenix#6847 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
beyond-all-reason/teiserver#1584 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ash-project/ash#2954 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
membraneframework/boombox#149 ·