8 replies
  • WEB DESIGN
  • |
Hi,
I was wondering if there are any web design experts out there that can help me with a small problem, well... it might not even be that difficult, but it is if you dont know it.

Anyway...
I have a sales landing page for my business...

myinternetbusinessexplained dot com

which, once someone has opted into my mailing list using the aweber form, they are redirected to my welcome page....

myinternetbusinessexplained dot com/welcome.html

What i want to do is... if someone has already landed on my page and entered their details to subscribe to my mailing list...then the next time they visit, they are automatically redirected to my welcome page,instead of having to enter their details again.

I take it ive got to set up some sort of cookie and a redirect but ive no idea how to do it.

Can anyone out there point me in the right direction?
Much appreciated.

Thanks,
Alan
#cookie #question
  • {{ DiscussionBoard.errors[937141].message }}
    • Profile picture of the author buckyuk
      Brilliant mate,
      Thats exactly what ive been looking for.

      Thanks a millions, i asked this question on digital point and some guy wanted to charge me $40 to do it, and wouldnt tell me how to do it myself.

      I think warrior forum may just be my new favourite forum! :-)

      Thanks again.
      {{ DiscussionBoard.errors[937228].message }}
  • Profile picture of the author buckyuk
    Ok now ive got another question....

    Say my site is ranking on page 1 of google for my keywords, And then i add this cookie redirect,
    How does that effect the google spiders, will the always still see the original page, or does the cookie redirect them to the welcome page?

    The reason im asking is because if they get redirected to the welcome page, then google will see it as a completely new site and my page will most probably drop from page 1 of google!?

    Any ideas?
    {{ DiscussionBoard.errors[937292].message }}
    • Profile picture of the author DirtProfessor
      Alan,

      Actually, I think the script that was shown to you by CoderPundit isnt exactly what you need.

      That script will automatically send them to Page B on the second visit, even if they never opted in.

      Example : If Visitor saw Page A (your opt-in) then redirect to Page B.

      Whereas, this is more of what you are after - AND I AM TOO :

      Example : IF Visitor is ON page A, but already saw Page B, then redirect to Page B (or C) - if Visitor has NEVER saw Page B then keep showing Page A.

      I have been scouring the internet for this type of script.

      The one that was shown here redirects whether or not they EVER opted in. Which, I guess would be ok in some cases - but you will NOT get the opt-in.

      The solution example I showed would also take care of your Google spider concerns - since they NEVER opt-in anyway and would NEVER see Page B.

      Please - someone help us with this.

      Thanks,

      MD
      {{ DiscussionBoard.errors[937357].message }}
      • Profile picture of the author buckyuk
        yeah your 100% right....
        Could you not do something like this, just off the top of my head..

        Put the script on both pages, A and B,

        Except make the cookie on page A expire straight away.
        But call the cookie the same name.

        This way the cookie would only get stored for say.. over 60 days if you have visited page B.

        What do you think?
        {{ DiscussionBoard.errors[937551].message }}
        • Profile picture of the author buckyuk
          ok so i tried my theory, but it just seems to go into a redirect loop, constantly redirecting to page B and it never actually loads fully.

          Any ideas?
          {{ DiscussionBoard.errors[937603].message }}
          • Profile picture of the author buckyuk
            OK, problem sorted....

            On page A, set the cookie to -1 for the days as explained.

            on page B, set it to 60 days...

            But also remove this line...

            go_to = "websitenamehere";

            works a treat.

            My only questions now is... back to the google thing.

            Can the spiders follow javascript.
            the reason i ask, is that my welcome page, page B is indexed
            in google, so it must be linked to from another site,

            should i worry about it or can i ignore it?

            So my last questions is... will google get redirected by
            this redirect?

            Thanks
            alan
            {{ DiscussionBoard.errors[937647].message }}
  • Profile picture of the author DirtProfessor
    Wow - That did the trick very well! Thanks.

    As far as the Google issue is concerned - I have no idea now. If I had to guess I would say you would be ok - because BEFORE it redirects the page actually loads for a split second. Maybe that is enough time for Google to count that page as ok.

    Just my guess. Thanks again!

    Mark
    {{ DiscussionBoard.errors[939276].message }}

Trending Topics