Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Wildcard URL redirects for Google Analytics tracking #150

Closed
croaky opened this Issue · 2 comments

2 participants

@croaky
Owner

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
@croaky
Owner

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

@croaky croaky closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.