Skip to content

add PLAUSIBLE_PREFIX support to Helpers.php #238

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

semanticfire
Copy link

Allow a different filename in proxy configuration

related to issue #228
Some ad blockers bluntly block anything that contains plausible Making the $file_name configurable together with the proper rewrite rule solved this.

wp_config.php should contain a line like

define('PLAUSIBLE_PREFIX','stats')

my nginx config now reads:

 location ~ /js/stats.(?<target>(.*?)).js {
        proxy_pass https://myplausibel.com/js/plausible.$target.js?ver=2.1.4;
        proxy_set_header Host myplausible.com;
}

Allow a different filename in proxy configuration

related to issue plausible#228
Some ad blockers bluntly block anything that contains `plausible`
Making the $file_name configurable together with the proper rewrite rule solved this.

wp_config.php should contain a line like
```
define('PLAUSIBLE_PREFIX','stats')
```

my nginx config now reads:
```
 location ~ /js/stats.(?<target>(.*?)).js {
        proxy_pass https://myplausibel.com/js/plausible.$target.js?ver=2.1.4;
        proxy_set_header Host myplausible.com;
}
```
Merge plausible original branch 2.3.2
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

Successfully merging this pull request may close these issues.

1 participant