Skip to content

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