Navigation Menu

Skip to content
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

unwanted pixel response triggering adblockers #16078

Closed
Mepherotus opened this issue Jun 17, 2020 · 4 comments
Closed

unwanted pixel response triggering adblockers #16078

Mepherotus opened this issue Jun 17, 2020 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Mepherotus
Copy link

Hello guys, the default behavior of the matomo JavaScript tracker seems to be sending the 1st request on the page with "request_image" set to 1, this theoretically should trigger a 200 with the 1*1 pixel as a response but some of the major adblockers have really strict rules for bocking image requests.

Is there any way in JS/matomo config/anywhere else to permanently set the request_image parameter to 0?

@tsteur tsteur transferred this issue from matomo-org/tag-manager Jun 17, 2020
@tsteur
Copy link
Member

tsteur commented Jun 17, 2020

@Mepherotus you could use _paq.push(['setRequestMethod', 'POST'])

@tsteur
Copy link
Member

tsteur commented Jun 17, 2020

and / or using _paq.push(['alwaysUseSendBeacon'])

@tsteur
Copy link
Member

tsteur commented Jun 17, 2020

@Mepherotus does this answer your question?

@Mepherotus
Copy link
Author

Yes, I was testing for some days now and, together with some simple rewrite rules on the load balancer (rewriting matomo.php to /m) we have quite a nice tracking coverage

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jun 21, 2020
@tsteur tsteur closed this as completed Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants