Skip to content

How to correctly implement Counter.dev in a Vue.js Single Page Application? #120

Description

@saeedesmaili

I want to use Counter.dev to track page views on my Vue.js Single Page app. I've noticed that the current implementation of the tracking script doesn't correctly track page views when navigating between pages using components.

Could you please provide some guidance on how to correctly implement Counter.dev in a Vue.js SPA to ensure accurate page view tracking when the route changes?

I have added the tracking script to public/index.html's <head> section, and the counter is only counting the first page each user visits.

Thank you for your help and for developing Counter.dev

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions