zadigetvoltaire / nuxt-gtm

Nuxt 3 module for Google Tag Manager
https://www.npmjs.com/package/@zadigetvoltaire/nuxt-gtm
MIT License
67 stars 4 forks source link

[bug] `vueRouterAdditionalEventData` is not serializable #32

Open dreitzner opened 5 months ago

dreitzner commented 5 months ago

I discovered an issue with vueRouterAdditionalEventData.

Nuxt only allows serializable data to be in nuxt.$config, so vueRouterAdditionalEventData is discarded.

Is there any other way to add the additional data?

This would be a deal breaker on our implimentation, and we'd port the module manually into our codebase and extend as needed.

📘 docs: https://nuxt.com/docs/guide/going-further/runtime-config#serialization