Maintaining UTM codes when Devise redirects to request password

Viewed 358

Regarding a Ruby on Rails 4.2.5 + Devise 3.4.1 app.

Some of the marketing around our app requires UTM codes. Sometimes, the marketing links point to resources that require a login to view. The problem is that when Devise redirects to the login screen, the UTM codes are removed, and Analytics counts the lead as an internal link, rather than crediting the UTM info properly.

Is there any easy way to fix this? And if not, a pointer to the right direction on what needs doing would be great.

2 Answers
Related