Google Adwords Help?

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Google Adwords Help?

Postby justdan » Tue 09 May, 2006 10:04 am

Heya guys, got another problem.

I just went to set up some google adwords for a website and google have notified me that i cannot use google adwords as they have a strict landing page policy. In other words they wont let me advertise my site using google adwords because when a customer finds my site on google and clicks on it. He/She cannot get back from my site to google in one click.

Let me explain why, when a customer goes to my url, they are forwarded to an index page on my some web space. This index page has some javascript on that sorts out wat browser thier using and forwards them off accordingly. So when a customer arrives at the home page with in half a second they have already gone to two pages. Hence when they click back it takes them to the sorting page, they get sorted and end up at the homepage again. Google will not allow me to use thier services if a customer cannot get back to google in one click.

Please help? any suggestion would be helpful :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
justdan
junior member
junior member
 
Posts: 7
Joined: Thu 23 Mar, 2006 11:24 am

Re: Google Adwords Help?

Postby Antony » Tue 09 May, 2006 10:41 am

justdan wrote:Let me explain why, when a customer goes to my url, they are forwarded to an index page on my some web space. This index page has some javascript on that sorts out wat browser thier using and forwards them off accordingly. So when a customer arrives at the home page with in half a second they have already gone to two pages. Hence when they click back it takes them to the sorting page, they get sorted and end up at the homepage again. Google will not allow me to use thier services if a customer cannot get back to google in one click.
I assume you have a page for Firefox and one for MSIE (or even more).

I would suggest you design a page that works for both Firefox and MSIE, which it shouldn't be hard to achieve. If you must have two (or more) versions, I would suggest you use the server-side language (e.g. PHP, ASP, or use .htaccess) to decide. Hence there won't be any automatic page redirecting. (So you can remove JavaScript code for page forwarding.)
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418 (KHTML, like Gecko) Safari/417.9.2
User avatar
Antony
diamond member
diamond member
 
Posts: 14509
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Tue 09 May, 2006 4:14 pm

In agreement with Antony, I'd recommend that you have the server control the redirection process. This can be achieved in a number of ways.

ASP/ASP.NET Example -- put this in your global.asa (for ASP) or global.asax (for ASP.NET).
Code: Select all
<script language="vbscript" runat="server">

Sub Session_OnStart
  If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE") Then
        Response.Redirect(Server.MapPath("/msie/") & "index.asp")
    Else
        Response.Redirect(Server.MapPath("/standard/") & "index.asp")
    End If
End Sub

</script>

For this one, just create your two sites, the MSIE-specific one in a directory called [tt]msie[/tt] and the standard one for everything else in [tt]standard[/tt].

.htaccess example -- put this in your .htaccess file
Code: Select all
RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} MSIE\ [^7]
RewriteRule !^forie(/.*)?$ /forie%{REQUEST_URI} [QSA,L]

For this one, put all of your IE-specific files in a directory called [tt]forie[/tt].

PHP Example
Code: Select all
<?php
if ($name = strstr ($HTTP_USER_AGENT, "MSIE"))
{
   Header ("Location: http://yoursite.com/msie/");
}
else
{
   Header ("Location: http://yoursite.com/standard/");
}
?>

You'd need to save this in the root folder as [tt]index.php[/tt], which in turn would redirect the browser to the [tt]msie[/tt] folder if the browser is MSIE, and to the [tt]standard[/tt] folder if the browser is something else.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060130 Donzilla/1.1PR1 (WML/1.3)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], MSNbot Media, Yahoo [Bot]