Redirect to different WebToLead Pages

Less than one minute read time.

A client has two WebToLead pages for two different regions of customers. Once they have submitted the information, they wish to redirect them to their respective websites.

If you go to Administration->Customizaton->Lead->WebtoLead, you will notice that you can only have one 'Web Lead Return Url".

A way to workaround this is to use Cookies. On one of your WebToLead pages, you can add this following piece of code (you will have to convert your WebToLead page to ASP):

Response.Cookies("WebToLeadSource")=1

Then create a separate redirect page that all users will be pointed to after submitting a Web Lead and, for example, call it 'redirect.asp':

if (Request.Cookies("WebToLeadSource")=1) then
Response.Redirect(
http://site1.com);
else
Response.Redirect(
http://site2.com);
end if

When you go back to Administration->Customization->Lead->WebToLead, use the redirect.asp page under 'Web Lead return URL'.

Parents
  • Derrick

    The technique used above does use classic ASP but cookies are able to be set and handled by all types of web server scripting tools. So it sould not matter whether your web server is Windows and IIS or Linux and Apache. You can still use the cookies and redirect to another page depending on the cookie's contents.

Comment
  • Derrick

    The technique used above does use classic ASP but cookies are able to be set and handled by all types of web server scripting tools. So it sould not matter whether your web server is Windows and IIS or Linux and Apache. You can still use the cookies and redirect to another page depending on the cookie's contents.

Children
No Data