1

Lets assume following scenario, I have two sites:

  • example1.com
  • example2.com

When user visits 1 there is a prompt "please signup to a newsletter". Same thing happens when user visits 2.

However when navigating from 1 to 2 I don't want signup form to be shown.


My first thought were 3rd-party cookies, but it seems that they are blocked / not working:

Another thought is to append #noshow for each URL but that would require some work - for instance a script that would intercept click / tap events and modify URL structure depending on the address. (but that seems hacky)


I wonder if you know a robust well-established solution to this issue?

Thanks

1

At this time I am unaware of any browser allowing domains to access local data stores of other domains. (cookies, html 5 local storage, flash objects). The simplest option here is to serve up your news letter prompt via JavaScript from just one of the domains. If the visitor is blocking third party cookies (their choice) then there is not much you can do about that and they'll see the prompt again.

A more complex option is to serve the JavaScript up via what ever server side language you are using (PHP?) and have the PHP script store their IP/User Agent hash in Memcache. If the hash is already there then don't show the visitor your news letter prompt.

  • I was thinking about user-agent via panopticlick.eff.org It's already fairly unique, add IP to that and pretty sure job done! (thank you for suggestion, keep the more answers coming) – Mars Robertson Jun 7 '14 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.