nuxt-posthog
nuxt-posthog copied to clipboard
How to correctly set `persistence`?
Hi, thanks for this module!
I'm trying to correctly set the persistence: 'memory'
to avoid using cookies, but I'm unable to do so apparently.
I tried to put this in my Nuxt config
posthog: {
clientOptions: {
persistence: 'memory',
},
},
As it seems, by reading the docs here https://nuxt-posthog.cmitjans.dev/configuration, that this is the correct way to pass config options.
Anyway, on my deployed site, cookies are still set, and I need to prevent this.
I checked and it seems that these options are not correctly passed, I have some error thrown inside vscode
Just to try, I added another random property (autocomplete
just to test) and the highlighted number went to 46.
Apparently it seems that the module is expecting me to pass all the possible properties down? Maybe there is some misconfiguration on my part, but I did everything by the docs, and it seems like there is some issue in merging the user settings with the default values .
Also, but I don't know if this can be an issue or not, by inspecting the module code, I noticed that the clientOptions is missing from the defaults, bu
Let me know if I can provide more info or context :)