Skip to content Skip to sidebar Skip to footer

Setting A Cookie From A Get Param To Uniquely Identify Mobile Users

I need to uniquely identify mobile devices on my rails app without user registration. They will be using a mobile app with an embedded with the default url hardcoded into the app.

Solution 1:

I don't know anything about your app, but a couple of things come to mind...

  • If you can send it as a HTTP header, that would hide it from the user, assuming it's going to launch their phone's browser.

  • Don't send them to the root of your site. Send them to say domain.com/mobile-launcher?uniqueid=.... This way you've got a dedicated place to handle your logic and can redirect them to the homepage.

Post a Comment for "Setting A Cookie From A Get Param To Uniquely Identify Mobile Users"