tracking with dynamic pageview properties in Vue #3850
Unanswered
JeroenHaverkort
asked this question in
Self-Hosted Support
Replies: 1 comment
-
Context: i want the payload of the post request to change while routing without having to reload the site |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Currently i am testing the self hosted version for a vue 3 app and am encountering some issues with setting the custom properties.
![image](https://private-user-images.githubusercontent.com/93723087/308957449-bdd3b5cf-1b71-4b31-b18e-208b7eb0311b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MTc4MzIsIm5iZiI6MTcyMDYxNzUzMiwicGF0aCI6Ii85MzcyMzA4Ny8zMDg5NTc0NDktYmRkM2I1Y2YtMWI3MS00YjMxLWIxOGUtMjA4YjdlYjAzMTFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDEzMTg1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliNTBhOTU2MGVkNWI2ZjkzNzk5ZGMyMmY5YTc1N2U4ZTcwYThjNDJhZTQ1ZjUzMWNkZTNjNGQzMDhjMGM4Y2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kMAcYjxuM-OdxwF9vnfwbr4PzBxZ9kiUvK4-j4rBLFY)
In the project i am including a chosen option 'season' gotten from the url with the script. However when the script (including the custom property 'event-season') is set in the mounted method, the custom attribute in the script tag cant be changed before the visit is sent to Plausible. Is there a way to work around this? I have tried deleting the script in the onBeforeUnmount method, but without success.
Beta Was this translation helpful? Give feedback.
All reactions