March 11, 2013

How to use Mobile and Desktop landing pages in Enhanced campaign

Desktop and Mobile Landing Pages For Enhanced Campaigns



  • Using {ifmobile} parameter in the url
This will work only if your mobile and desktop landing pages are in a particular structure.

For example if your desktop landing page is whatever.com and your mobile landing page is whatever.com/mobile/.
You can use destination URL as is whatever.com/{ifmobile:mobile/}

Now adwords will process this URL internally onclick and process it in following way
If click happens from Desktop then{ifmobile:mobile/} will not trigger and the landing page will be whatever.com/.

If click happens from mobile then{ifmobile:mobile/} will trigger and langing page will be like whatever.com/mobile/
This is easiest solution but requires a URL structure which you might not get on all websites.

  • Using {device} parameter
This will work in all kind of URL structures and doesn't need a particular type.

For example lets say your desktop landing page is whatever.com and your mobile landing page is mobile.whatever.com
In this case you will need to do bit of coding, don't worry just 16 lines of it  :smileyvery-happy:

So in this case your destination URL will neither be whatever.com nor mobile.whatever.com, it will be a page hosted on whatever.com like whatever.com/destination.php?device={device}

Now when click happens from mobile Adwords will render this URL as whatever.com/destination.php?device=m

If click happens from tablet Adwords will render this URL as whatever.com/destination.php?device=t

If click happens from desktop Adwords will render this URL as whatever.com/destination.php?device=c

Here is a piece of code which redirects tablet and desktop users to desktop page and mobile users to mobile page.
This code also carries forward query string parameters so if you are using UTM parameters for tagging or autotagging you still have your data in analytics and there is no data loss due to redirect
Spoiler
<?php
$a = $_SERVER['QUERY_STRING'];
if (strpos($a,'device=m') !== false) {

$location = 'http://m.whatever.com/?'. '&' . $a;
}
else
{
$location = 'http://whatever.com/index.php?' . '&' . $a;

echo '<br />';

}


Source : AdWords Community
by theniks

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More