question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support anchor links for pageview tracking

See original GitHub issue

In the old GA library when i just had the basic setup with

  Vue.use(
    VueGtag,
    {
      config: { id: "UA-XXXXX" }
    },
    router
  );

(of course the syntax looked a little bit different with the old library)

when i clicked a link /#test it was tracked as a pageview. In the new library it is not tracked anymore.

Can you enable that or tell me what needs to be done to support this?

Sample Code from the app is: <v-btn to="/#test">test</v-btn>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eikarambacommented, Jul 14, 2020

great! yes it works. thank you

1reaction
MatteoGabrielecommented, Jul 14, 2020

you can add pageTrackerSkipSamePath: false to the plugin options and should work. let me know if works for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tracking Virtual Pageviews (Anchor Links, Steps, Funnels ...
This video covers how to track virtual pageviews for anchor links, multi-step processes, and funnels using Google Tag Manager for Universal ...
Read more >
How to Track Anchor Links in Google Analytics - MonsterInsights
To view the anchor links tracking data, navigate to Behavior » Site Content » All Pages. anchor links tracking data. You'll find the...
Read more >
How to Set Up Pageview Tracking on a One-Page Website
Here's how to track anchor link clicks on your single-page website with ExactMetrics! Step 1: Install ExactMetrics. Already have the plugin?
Read more >
How To Track Clicks On #Anchors in Google Analytics
Many websites use named anchors (referenced by using a hashtag, #) to quickly link to specific areas on a webpage. Examples of named...
Read more >
Google Analytics - how to track an internal page?
Google analytics does not track anchor links out of the box, you will need to edit the tracking code. Try the following
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found