johannschopplich / nuxt-gtag

๐Ÿ”ธ Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
302 stars 9 forks source link

feat!: update module options #62

Closed DamianGlowala closed 2 months ago

DamianGlowala commented 7 months ago

๐Ÿ”— Linked issue

resolves https://github.com/johannschopplich/nuxt-gtag/issues/59

โ“ Type of change

๐Ÿ“š Description

This adds initMode option and changes the purpose of enabled one.

๐Ÿ“ Checklist

netlify[bot] commented 7 months ago

Deploy Preview for nuxt-gtag ready!

Name Link
Latest commit 8755ba18fcfb897281d74858de1e7963e915145b
Latest deploy log https://app.netlify.com/sites/nuxt-gtag/deploys/66229964e4d61600086be4bf
Deploy Preview https://deploy-preview-62--nuxt-gtag.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

johannschopplich commented 6 months ago

Great idea. Let's wait until this module has been moved to the @nuxtjs namespace. After the migration, I will release a new major version.

DamianGlowala commented 6 months ago

Sure!

When working on this PR, I was wondering whether it would make sense for this module to expose isInitialized flag (the one which currently is declared in the playground? Let me know if it would bring any value and I can add it :)

johannschopplich commented 6 months ago

Yeah, absolutely! Would be a great addition to check if one (or multiple) IDs have been activated already.

johannschopplich commented 2 months ago

Thanks for the PR! I've implemented the changes manually while also updating the README.