Skip to content

feat(docs): upgrade vue-privacy with GA4 tracking + dependency updates #282

@polaz

Description

@polaz

Summary

Upgrade vue-privacy with proper GA4 event tracking and update other dependencies.

Part 1: vue-privacy GA4 Integration

Current State

  • vue-privacy ^1.2.3 is installed but only basic features are used:

    • enhanceWithConsent() for consent management
    • ConsentBanner component
    • createKVStorage() for consent persistence
    • Automatic page view tracking
  • NOT used: Custom event tracking capabilities

Proposed Changes

1. Upgrade vue-privacy to latest

yarn add @structured-world/vue-privacy@latest

2. Implement GA4 recommended events

Based on GA4 recommended events:

Event Trigger Parameters
search VitePress local search search_term
file_download .mcpb bundle download file_name, file_extension, link_url
click External link clicks link_url, link_domain, outbound: true

Part 2: Dependency Updates

Package Current Target Type
@structured-world/vue-privacy ^1.2.3 latest devDependencies
@modelcontextprotocol/sdk ^1.25.3 ^1.26.0 dependencies
@cloudflare/workers-types ^4.20260131.0 ^4.20260203.0 devDependencies
@types/node ^24.10.9 ^24.10.10 devDependencies
picomatch ^4.0.0 ^4.0.3 dependencies
undici ^7.19.2 ^7.20.0 dependencies

Update Command

yarn add @structured-world/vue-privacy@latest @modelcontextprotocol/sdk@^1.26.0 picomatch@^4.0.3 undici@^7.20.0
yarn add -D @cloudflare/workers-types@^4.20260203.0 @types/node@^24.10.10

References

Time Estimate

3-4 hours

Acceptance Criteria

vue-privacy tracking

  • vue-privacy upgraded to latest
  • Search events tracked with search_term parameter
  • File download events tracked for .mcpb files
  • Outbound link clicks tracked
  • Events visible in GA4 Realtime report
  • No tracking occurs when analytics consent is denied

Dependency updates

  • All dependencies updated
  • yarn lint passes
  • yarn test passes
  • yarn build completes
  • MCP server starts without errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions