Skip to content

Waiting for first pageview #990

May 4, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

It looks like you have an ad blocker. You can get your first page view by turning it off.
EasyList, which is used by a significant number of ad blocking software contains a rule blocking plausible.js.
To circumvent this, you might want to add a rewrite rule to your nginx such as:

    location /js/plaus.js {
        rewrite /js/plaus.js(.*) /js/plausible.js$1 break;
        proxy_pass http:https://plausible:8000;
        proxy_redirect off;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header Host $host;
    }

And then change your html to reference plaus.js instead of plausible.js

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stccorp
Comment options

@stccorp
Comment options

@maciekmm
Comment options

Answer selected by metmarkosaric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants