Pass router parameters?
See original GitHub issueHi. 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:
- Created 7 years ago
- Comments:10 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
yeah, I implemented it on a per route basis now. Thanks again!