I've seen on MotoGP.com that when I view the site from a mobile device or tablet I get a message saying 'would you like to see our mobile apps' message and if I choose 'no' that the next time I visit from the same device the message no longer appears. I would really like to introduce such functionality to my site but I'm unsure about a good way to do that, I thought something like this:
- Using PHP lookup device when user visits site (try to detect OS, iOS or Android for example)
- Lookup user's MAC address
- From a table in the DB containing MAC addresses and a boolean flag, check if user has visited before and expressed a preference for not seeing the dialogue box again.
- If the MAC address is not in the DB show the message
- If MAC address is in the db with flag set, don't show message.
Any comments on whether this is a good approach or not? It's just what I came up with from scratch and searching seemed to yield nothing.
Thanks for any comments.
David