I am not clear as to when I should use URL path vs URL parameters, for instance to show a group based on the URL path (or parameters). An example: if I want to show a Signup vs Login group on the signup page, I could do it either with the URL path or with a URL parameter.
What is the best practice of using one vs another and why?
Paths are harder but superior for SEO & native GA tracking without as much need for custom events, also better if you’re using 3rd party redirects for any reason as many clear Params on redirect.
Params are easier and faster to implement but don’t have some of the benefits as paths.
For signup/login these should always be separate pages, regardless of what anyone says with using states to display the login/signup group, they are wrong. The only exception to them being separate pages is native apps. Your marketing team will thank you and tracking data will always be consistent and clean.
I just looked at your post and is very helpful, but doesn’t giving the index page a datatype mean there’s gonna be “index” in the url as soon as you send data to the page?