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

Allow user to define a custom name for the tracker file so Ad Blocker / Malware is less of a problem #19864

Open
atom-box opened this issue Oct 14, 2022 · 8 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@atom-box
Copy link

A user suggests:

The stats tracker might be blocked by browser ad blockers. The workaround for that looks a bit awkward / fragile to implement. I would appreciate a "supported" solution to the problem instead of a workaround / hack (e.g. a way to define a custom name for the tracker file).

@atom-box atom-box added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 14, 2022
@Chardonneaur
Copy link

@atom-box thank you for making useful tickets

@atom-box
Copy link
Author

@bx80
Copy link
Contributor

bx80 commented Oct 17, 2022

Thanks for reporting this feedback @atom-box, I think many people would find this enhancement useful. 👍 I've assigned it for prioritization.

@bx80 bx80 added this to the For Prioritization milestone Oct 17, 2022
@Orgoth
Copy link

Orgoth commented Dec 7, 2022

I would like to make one more addition.
The uBlock extension no longer blocks Matomo calls exclusively via the parameters or name.
EasyPrivacy has now also included the request type and blocks the initial ping.
Would it be possible to make the request type also adjustable?

Auswahl_002
Auswahl_003
Auswahl_004

@sgiehl
Copy link
Member

sgiehl commented Dec 7, 2022

@Orgoth So does the block all ping requests in general?
By default Matomo tries to use sendBeacon if the browser supports it. If you don't want to use that one, you can call the tracker method disableAlwaysUseSendBeacon. Afterwards Matomo should use normal xhr requests.

@Orgoth
Copy link

Orgoth commented Dec 7, 2022

I tried disabling SendBeacon, but Matomo still sends ping requests.

                        "parameters": {
                            "matomoUrl": "https:\/\/.....de\/",
                            "idSite": "57",
                            "enableLinkTracking": true,
                            "enableCrossDomainLinking": true,
                            "enableDoNotTrack": true,
                            "enableJSErrorTracking": false,
                            "enableHeartBeatTimer": false,
                            "trackAllContentImpressions": true,
                            "trackVisibleContentImpressions": true,
                            "disableCookies": true,
                            "requireConsent": false,
                            "requireCookieConsent": false,
                            "setSecureCookie": true,
                            "cookieDomain": "",
                            "cookiePath": "",
                            "cookieSameSite": "Lax",
                            "disableBrowserFeatureDetection": false,
                            "domains": [],
                            "alwaysUseSendBeacon": false,
                            "userId": "",
                            "customDimensions": [],
                            "bundleTracker": true,
                            "registerAsDefaultTracker": true,
                            "jsEndpoint": "js\/",
                            "trackingEndpoint": "js\/"
                        },

Where can i set the "disableAlwaysUseSendBeacon" within the TagManager?

@sgiehl
Copy link
Member

sgiehl commented Dec 7, 2022

It seems the TagManager currently only supports to send alwaysUseSendBeacon, but not the disable method. But my experience with TagManager is limited, so maybe create an issue in the tagmanager repo for supporting the disableAlwaysUseSendBeacon method: https://github.com/matomo-org/tag-manager/issues. They might also be able to provide a workaround till it is supported.

@Orgoth
Copy link

Orgoth commented Dec 7, 2022

@sgiehl
Thank you very much, I will ask there.
I wish everyone a happy December.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

5 participants