Wildcard URL redirects for Google Analytics tracking #150

Closed
croaky opened this Issue Feb 9, 2013 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

croaky commented Feb 9, 2013

If we add this to the top of config/routes.rb:

match '/*path/via/:source' => redirect('/%{path}/?umc_source=%{source}')

We can use friendlier URLs for sharing:

/landing-page/via/email
/another-landing-page/via/twitter
/a-landing-page/via/search-ads
/landing-page/via/blog-ads
Contributor

croaky commented May 18, 2014

We haven't been doing this on projects. So, closing for now.

@croaky croaky closed this May 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment