wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

add PLAUSIBLE_PREFIX support to Helpers.php

Open semanticfire opened this issue 10 months ago • 0 comments

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;
}

semanticfire avatar Feb 22 '25 21:02 semanticfire