It's going to be a bit complicated to properly track routing change in a middleware, can we think about a nice way to play with screen tracking middleware ?
Currently we can access the current route name and whatever that is in the router state.
It could be nice if each screens can specify a analyticsScreenName meta that depend on something like params, or pre specified configuration like routes' metas of VueJS Router.
For example at the moment I got some route named as the following :
If i need to dispatch "Authenticated/Explore/ExploreHome" for ExploreHome, I need to maintain a map collection alongside, if we had the capability to add some kind of meta, this could be nice.
On declaration or directly in screen via navigationOptions.
What do you think of that ? Should we make a separate module that can be imported as redux middleware ? I can develop in a RFC if you think that's a good point.
Hello,
It's going to be a bit complicated to properly track routing change in a middleware, can we think about a nice way to play with screen tracking middleware ?
Currently we can access the current route name and whatever that is in the router state.
It could be nice if each screens can specify a
analyticsScreenName
meta that depend on something like params, or pre specified configuration like routes' metas of VueJS Router.For example at the moment I got some route named as the following :
If i need to dispatch "Authenticated/Explore/ExploreHome" for ExploreHome, I need to maintain a map collection alongside, if we had the capability to add some kind of meta, this could be nice.
On declaration or directly in screen via navigationOptions.
What do you think of that ? Should we make a separate module that can be imported as redux middleware ? I can develop in a RFC if you think that's a good point.
Best regards