SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: JavaScript Popup: SEO, Accessability?

Hybrid View

  1. #1
    SitePoint Addict revlimiter's Avatar
    Join Date
    Sep 2005
    Location
    British Columbia, Canada
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript Popup: SEO, Accessability?

    Hi everyone,
    I have a question about SEO and accessibility.

    Our programmer added this JavaScript popup to our website. It pops up on the first page that you go to and is as follows:

    If you are planning to use the shopping basket during your current session, please consider giving us an email address that we can use to recover your shopping basket items in case something goes wrong (which sometimes happens).

    1. This is completely optional but strongly advised.
    2. We will not use this email address for any other purpose than shopping basket recovery.
    3. Leave the box blank if you do not wish to use this feature.
    4. If you want, you can set this email address from the shopping basket page later.
    5. Also, consider signing up for a free membership! That way your shopping basket items are always saved!

    You shouldn't be seeing this message again anytime soon.

    Please enter an email address below or click 'Cancel'
    It contains a description of what the issue is with recovering shopping baskets that may otherwise be non-cached on the client's browser. (They walk away from their computer for a week and come back, expecting the shopping basket to still be there. We have a user login and a wishlist system too but they don't seem to understand that this is typically only a sign in and save feature for websites)

    On the iPhone and iPad I can't read this JavaScript popup text at all because it is way too big for the screen. I also have questions about whether this is hurting SEO or not, it seems to definitely be a downgrade for accessibility. It will go away if you click Cancel but I can also just see it as a bad experience for a customer's first impression of the website.

    Any thoughts and opinions on it?
    Thanks,
    "To make an apple pie from scratch,
    you must first create the universe.”
    -Carl Sagan

  2. #2
    i want cake and cookies Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    9,990
    Mentioned
    41 Post(s)
    Tagged
    1 Thread(s)
    They walk away from their computer for a week and come back, expecting the shopping basket to still be there.
    I wonder what's wrong with these people? Or are they getting this "feature" from other sites such as Amazon, which sneakily makes sessions in the back and accounts for people as they use the site? (which might be a better way of dealing with this... instead of demanding they do some kind of work, just wait til they're already doing some work anyway and re-use it to improve user experience instead)

    So this is supposed to be helpful and useful, but is actually Clippy-annoying and possibly inaccessible... so here's some better ideas, I think. (if you use these ideas, you don't have to worry at all about SEO)

    You could instead offer a one-short-sentence "alert" ONLY when someone new-and-not-logged-in adds their first product to their basket, saying "see how your email address can remember items in your basket for you" (or similar, and preferably shorter) and a plain old link to that longer text you posted above, as another page or something. Since popups aren't fitting on mobile screens, either only popup info for desktop or just let everyone go to a separate page. People don't mind separate pages, really.
    I like this a lot: it's rather unobtrusive, and it only appears when the user does an action where now your email-scheme would actually benefit them. And they still have the passive option of just ignoring it, rather than needing to click Cancel.

    The alert should either show up wherever their basket stuff is (if it's the usual top-right area most places put these things), or better yet, near the button they clicked to add the item to their basket. If an automatic page refresh happens at that point instead, then wherever user studies show people's eyes go to first thing on that page. You'll need to test this to see if people miss it entirely, because if nobody sees it, it will never work, and whomever suggested the ginormous annoying popup will have had a "better idea". So test whatever you implement on a few random (not terribly familiar with your site) people.

    I think that's probably what you want: OFFERS information WHEN it benefits people WITHOUT requiring any action. People who get all pissed that their unsaved baskets are empty when they come back from Hawaiian vacation are the people who will care enough to click that link. Everyone else will shrug and say "well yeah, nothing else gets remembered when I close a page or sit too long either". Or maybe I'm weird, but I never expect things to be remembered. Especially e-commerce, where in the meantime that thingie in my basket may have sold out now, or changed price.

    If you're worried specifically about screen readers, maybe maybe maybe an aria-role="alert" or aria-live="polite" might make sense (live regions tend to be things sitting on the page who change regularly from user interaction, so probably alert makes more sense). I use it for when users add stuff to their baskets and the little basket area in the upper-right of the page changes the number of items and price. It unobtrusively lets users know their basket action worked, updates them with *very short* information, and doesn't disturb their keyboard or screen reader focus.

    In addition, you can and probably should repeat this information as a single sentence + link-to-longer-text, just regular in the page (no popup or JS, and don't show or display:none to people already logged in), at the top of their View Basket page, or near the View Basket button/link, and perhaps when they are already filling in their email with all that other information they do when they actually go to buy (remind them that later on they can use their email address to save baskets and wishlists, again with a very short one-sentence bit).

    You could, on those pages, even style it as a "handy tip" with a little related icon. It then stops being a pain in the a$$ for customers and browsers (by browsers, I mean people who look but don't intend (yet) to buy), and becomes something helpful and useful.

    I don't think search engines are going to read content from a javascripted popup, so this likely has null effect on SEO. The intrusive popup may cause high bounce rates from your main page though... if SE's detect that and use it in rankings, then I suppose it would be "bad for SEO". I leave most pages with crappy popups telling me they use cookies and I have to agree to them (it's part of European law now), or I use my browser debugger to display: none that crap. Non-developers just leave, or click mindlessly without reading, neither of which benefits you.

  3. #3
    i want cake and cookies Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    9,990
    Mentioned
    41 Post(s)
    Tagged
    1 Thread(s)
    Ran into a site today that does something equally bad: officemax.com

    Sure, it sounds like a benefit to users: get great deals in your inbox! But is that the current goal in the user's mind when they go to the main page? Usually not. I not only find the popup intrusive and annoying, but it's displayed at the wrong time. Makes more sense to say things like "give us your email so we can spam you with great deals" after the user has snuffled around a bit, or clicked on any actual promotions, or has added something to their basket (going from a casual browser to almost a buyer) and since there they've got to add their email address anyway, set the offer there ("you're already a customer; do you want to get deals via email? [checkbox]").

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •