-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Track Custom Query Parameters #86
Comments
Hi! The first step can be achieved by setting the I'll look into the custom query params feature when I have time. Thanks! |
@guttermouth99 have you found a solution? It'd be great to have some simple way of allow-listing certain get params without having to do anything complex like described in https://plausible.io/docs/custom-query-params. |
Hey @kachkaev, @guttermouth99, I have an initial proposal to implement support for custom query parameters. It exposes the prepareUrl function and can be used like this: import { prepareUrl } from 'next-plausible'
plausible('pageview', {
u: prepareUrl('param1', 'param2'),
}) Would that be enough? Please let me know your thoughts. |
Are there any updates on whether there's a way of doing this? |
Hey,
I was wondering if there is an easy way to implement tracking of custom query parameters like described in the plausible documentation: https://plausible.io/docs/custom-query-params
I know its possible to set custom scriptProps. So I assume replacing the script with the .manual would solve the first step described in the plausible documentation.
However, I am unsure how to add the second part. Is it simply possible to add this to the script of my _document.js? I am worried this might intervene with the ?
The text was updated successfully, but these errors were encountered: