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.

Pass router parameters?

See original GitHub issue

Hi. Great plugin, thanks for making it. Installation was very easy.

My current issue, though, is that, if I just use the default router integration which passes the route name to GA, none of the route parameters are sent. e.g. visiting /#/users/1 only sends /users to GA, instead of /users/1. Is there a way to make it pass the params, too, other than manually calling this.$ua.trackView(constructedScreenName) myself?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ScreamZcommented, Mar 21, 2017

Hey! Thanks for the feedback, highly appreciated 😉

I agree with the idea, I’ll make something to take that it parameter. I ping you when it’s all right.

Best regards

0reactions
cspeercommented, Jun 3, 2019

yeah, I implemented it on a per route basis now. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Route Params - TekTutorialsHub
We looked at how to pass parameters or data to the Route. The parameters are passed to the route by using routerLink parameters...
Read more >
Passing parameters to routes - React Navigation
Pass params to a route by putting them in an object as a second parameter to the navigation.navigate function: navigation.navigate('RouteName', { /* params...
Read more >
Passing Props to Route Components | Vue Router
You can create a function that returns props. This allows you to cast parameters into other types, combine static values with route-based values,...
Read more >
How To Pass Multiple Route Parameters in a React URL Path
Route params are parameters whose values are set dynamically in a page's URL. This allows a route to render the same component while...
Read more >
React Router Pass Param to Component - Stack Overflow
I used this to access the ID in my component: <Route path="/details/:id" component={DetailsPage}/>. And in the detail component:
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