Skip to content

Intergrate google analytics#47

Merged
rileychh merged 3 commits intomainfrom
feat/google-analytics
Mar 19, 2026
Merged

Intergrate google analytics#47
rileychh merged 3 commits intomainfrom
feat/google-analytics

Conversation

@mirumodapon
Copy link
Copy Markdown
Collaborator

This pr integrates google analytics with nuxt-gtag.

@mirumodapon mirumodapon requested a review from rileychh March 19, 2026 06:20
@rileychh-dokploy-coscup
Copy link
Copy Markdown

rileychh-dokploy-coscup bot commented Mar 19, 2026

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
Nuxt ❌ Failed Preview URL 2026-03-19T07:07:11.708Z

@mirumodapon mirumodapon force-pushed the feat/google-analytics branch 2 times, most recently from ae03136 to 1359700 Compare March 19, 2026 06:22
@mirumodapon mirumodapon force-pushed the feat/google-analytics branch from 1359700 to e226d3c Compare March 19, 2026 06:34
@mirumodapon mirumodapon marked this pull request as ready for review March 19, 2026 06:51
Copilot AI review requested due to automatic review settings March 19, 2026 06:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Integrates Google Analytics into the Nuxt 4 static-generated site by adding the nuxt-gtag module and wiring its configuration via an environment variable intended to be provided in CI/deploy workflows.

Changes:

  • Add nuxt-gtag dependency (and lockfile entries).
  • Register nuxt-gtag in nuxt.config.ts and configure gtag options using process.env.GOOGLE_GTAG.
  • Attempt to pass GOOGLE_GTAG into GitHub Actions CI/deploy job environments.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pnpm-lock.yaml Adds lockfile entries for nuxt-gtag@4.1.0.
package.json Adds nuxt-gtag dependency.
nuxt.config.ts Registers nuxt-gtag and adds gtag configuration reading from GOOGLE_GTAG.
.github/workflows/deploy.yaml Adds GOOGLE_GTAG env var to the deploy build job (currently mis-referenced).
.github/workflows/ci.yaml Adds GOOGLE_GTAG env var to CI job (currently mis-referenced).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@mirumodapon mirumodapon linked an issue Mar 19, 2026 that may be closed by this pull request
@mirumodapon mirumodapon force-pushed the feat/google-analytics branch from 1ad5ae0 to cd5c9ef Compare March 19, 2026 07:05
@rileychh rileychh merged commit 842eca4 into main Mar 19, 2026
1 check passed
@rileychh rileychh deleted the feat/google-analytics branch March 19, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

上線前埋 GA

3 participants