Open tonysaad opened 2 years ago
I support this patch.
The documentation suggests to use alternative paths when proxying through for example Cloudflare workers, so it would be nice to support this use case also in this package.
I'd proceed with a merge request then
Agreed. Happy to merge a PR.
The ability to customize the path-part of the events API would be great. Needed for proxying to work, since we already use that path for other things on our domain.
It's possible in the hosted version: https://github.com/plausible/analytics/blob/master/tracker/src/plausible.js#L12
Is there an open PR for this?
@vinibrsl A few suggestions regarding this and your overall architecture.
let instance = new PlausibleTracker({ domain: 'abc.com', 'β¦' });
instance.trackEvent('myEvent', { myProp: 1 });
scriptEl.getAttribute('data-api')
and passes that into a library instance.Also interested in this, as it's becoming essential to proxy these events which is also for us not possible unless we can specify the full path.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
plausible-tracker@0.3.5
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.