![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
|
|
|
|
|
#2 |
|
Warrior Member
Join Date: Jun 2009
Location: India
Posts: 24
Thanks: 0
Thanked 4 Times in 4 Posts
|
I think this is what you are looking for.
![]() Javascript Cookie redirection. Free and Commercial Perl and Javascripts |
|
|
|
|
|
#3 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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. |
|
|
|
|
|
#4 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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? |
|
|
|
|
|
#5 |
|
Warrior Member
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
|
|
|
|
|
#6 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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? |
|
|
|
|
|
#7 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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? |
|
|
|
|
|
#8 |
|
Warrior Member
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
|
|
|
|
|
#9 |
|
Warrior Member
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
|
|
|
![]() |
|
| Tags |
| cookie, question |
| Thread Tools | |
|
|
![]() |