Skip to content
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

Bump nuxt-gtag from 1.1.1 to 2.0.1 #472

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 27, 2024

Bumps nuxt-gtag from 1.1.1 to 2.0.1.

Release notes

Sourced from nuxt-gtag's releases.

v2.0.1

No significant changes

    View changes on GitHub

v2.0.0

Migration Guide

The latest version of Nuxt Gtag improves the API and adds support for Google Tag Consent Mode v2. This migration guide will help you to upgrade your project from the previous version to the latest one.

Migrating initialConsent

This module option has been renamed to enabled. If you have set initialConsent to false in your configuration, you should rename it to enabled.

export default defineNuxtConfig({
  modules: ['nuxt-gtag'],
gtag: {
id: 'G-XXXXXXXXXX',

initialConsent: false


enabled: false
}
})

Migrating grantConsent

This function has been renamed to initialize. If you have used grantConsent in your project, you should rename it to initialize.

const { 
    gtag,
-    grantConsent
+    initialize
} = useGtag()

grantConsent()


initialize()

Migrating revokeConsent

Before v2, grantConsent and revokeConsent were used to enable and disable analytics. But the abstraction was not clear, because they didn't work for other Google products like Google Ads.

Now, you can use enableAnalytics and disableAnalytics to enable and disable analytics.

New: Google Consent Mode

[!TIP]

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nuxt-gtag](https://github.com/johannschopplich/nuxt-gtag) from 1.1.1 to 2.0.1.
- [Release notes](https://github.com/johannschopplich/nuxt-gtag/releases)
- [Commits](johannschopplich/nuxt-gtag@v1.1.1...v2.0.1)

---
updated-dependencies:
- dependency-name: nuxt-gtag
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 27, 2024
Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for mitre-saf-demo ready!

Name Link
🔨 Latest commit 433d0ff
🔍 Latest deploy log https://app.netlify.com/sites/mitre-saf-demo/deploys/65de5d21596980000836b775
😎 Deploy Preview https://deploy-preview-472--mitre-saf-demo.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.

Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for mitre-saf-v2 ready!

Name Link
🔨 Latest commit 433d0ff
🔍 Latest deploy log https://app.netlify.com/sites/mitre-saf-v2/deploys/65de5d21c72ef100082186c8
😎 Deploy Preview https://deploy-preview-472--mitre-saf-v2.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.

Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 28, 2024

Superseded by #474.

@dependabot dependabot bot closed this Feb 28, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/dev/nuxt-gtag-2.0.1 branch February 28, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants