Home > Paid Traffic Sources > Search / PPC (Adwords, Bing, etc.)

Fastest Way of Changing Destination URLs? (12)


09-05-2012 08:34 PM #1 js26 (Member)
Fastest Way of Changing Destination URLs?

I've been split testing a lot of different LPs in AdCenter and having to manually go and change every single ad in every single ad group is getting tiring.

There has to be a faster way to do this, right?


09-05-2012 08:42 PM #2 snipe (Member)

Just put this in place of all your current landers...

[PHP]
<? header('Location: http://mydomain.com/testlander'); ?>
[/PHP]


09-05-2012 08:43 PM #3 seitzy12 (Member)

If your URL in your ad was Example.com/js26 just go in and make the new landing page Example.com/js26 and change your old landing page to Example.com/js25


09-08-2012 08:00 PM #4 js26 (Member)

Quote Originally Posted by snipe View Post
Just put this in place of all your current landers...

[PHP]
<? header('Location: http://mydomain.com/testlander'); ?>
[/PHP]
Sorry, I am a complete PHP n00b - what does this do? I assume it loads destination URL, then re-directs to the location URL? Any risk of being banned for using this?

Quote Originally Posted by seitzy12 View Post
If your URL in your ad was Example.com/js26 just go in and make the new landing page Example.com/js26 and change your old landing page to Example.com/js25
I'm tracking each page with P202, so there's still the PHP code. i.e. Example.com/js26&tkw202={keyword}&id=32424 etc.


09-08-2012 09:45 PM #5 snipe (Member)

Quote Originally Posted by js26 View Post
Sorry, I am a complete PHP n00b - what does this do? I assume it loads destination URL, then re-directs to the location URL? Any risk of being banned for using this?
Exactly. Nah you'll be fine if your landers are all compliant. If you're tracking with P202 you'll need to pass the parameters through like this:

[PHP]<? header('Location: http://mydomain.com/testlander?t202kw='.$_GET['t202kw'].'&id='.$_GET['id']); ?>
[/PHP]

A better alternative would be to use PHP include, which would avoid the additional redirect.
[PHP]<? include('lp1.php'); ?>[/PHP]


09-10-2012 12:24 AM #6 js26 (Member)

Thanks so much snipe. I'm going to try and explain to myself what's going on here - let me know if I'm wrong - I set my destination URL as:

Code:
http://mydomain.com/index.php
Index.php contains only:
Code:
<? include('lp1.php'); ?>
Which just inserts lp1.php into index.php. I'm pretty confident I understand up until this part, it's where we try and maintain P202 integration where I get lost.

Since I'm tracking text ads + LP and passing a keyword variable my URLs look like this:
Code:
http://mydomain.com/lp1.php/?t202id=#####&t202kw={KeyWord}
Which I see the redirect example you gave me accounts for. Is there a way to make this work (tracking with P202) with PHP include?


09-10-2012 03:12 AM #7 snipe (Member)

Quote Originally Posted by js26 View Post
Thanks so much snipe. I'm going to try and explain to myself what's going on here - let me know if I'm wrong - I set my destination URL as:
Code:
http://mydomain.com/index.php
Index.php contains only:
Code:
<? include('lp1.php'); ?>
Which just inserts lp1.php into index.php. I'm pretty confident I understand up until this part, it's where we try and maintain P202 integration where I get lost.

Since I'm tracking text ads + LP and passing a keyword variable my URLs look like this:
Code:
http://mydomain.com/lp1.php/?t202id=#####&t202kw={KeyWord}
Which I see the redirect example you gave me accounts for. Is there a way to make this work (tracking with P202) with PHP include?
You're welcome.
You should be good to go if the tracking was already working with index.php,
when you include a file like that it just acts as an extension of the original (as if it were the same file).


09-10-2012 04:44 AM #8 zeno (Administrator)

Yah if you're passing t202id and t202kw via the index.php URL, if you include lp1.php in the page then the links inside that lander page should still pick up those values you've passed just fine as they were originally (as any GET operations are going to pull from the URL in the address bar essentially).

If you want to test it just echo the variables somewhere in your lander text to make sure they are being passed correctly. It's a good idea to do that in any situation to check for mistakes on your part. Another thing is to watch the HTTP headers as you go from your ad -> lander -> aff link to make sure everything is as you expect.

[PHP]
echo $_GET['t202kw']
echo $_GET['t202id']
[/PHP]


09-10-2012 06:04 PM #9 zealous (Member)

Quote Originally Posted by snipe View Post
A better alternative would be to use PHP include, which would avoid the additional redirect.
[PHP]<? include('lp1.php'); ?>[/PHP]
Just use this. This is also how I rotate p202 LPs for split testing... super easy because it will load a random LP you want to test and you don't have to worry about passing any GET variables in PHP or anything...

[PHP]
<?

//Tracking202 Landing Page Rotation Script

//landing pages filenames, theses will be rotated between eachother

//theses landing pages must be in the same DIRECTORY as this file

//you can add as many landing pages here as you like

$landingpage[1] = 'lp1.php';

$landingpage[2] = 'lp2.php';

$landingpage[3] = 'lp3.php';

$lpNumber = rand(1,count($landingpage));

//include the landing page

include_once($landingpage[$lpNumber]);

//terminate script

die();

?>
[/PHP]

Delete the entries that aren't winning and you can split test forever through the same link. Just make sure you make sure the values on the left always count up from 1 (e.g. $landingpage[1], $landingpage[2] etc).

Oh and this gets broken on wordpress sometimes if you are using WP for your landing pages. Always test your links!


09-11-2012 01:12 AM #10 js26 (Member)

Thanks guys!

So what I'm going to do from now on is set my destination URL to the simple include script in this thread - but I still need to append the P202 tracking information to the URL. i.e.

Code:
mydomain.com/include_script.php?t202id=12345&t202kw=STM
Where t202kw is the keyword and t202id is the SubID, and because P202 tracks landing pages via the on-page Javascript + the outgoing PHP redirect file, the actual destination URL doesn't include any LP specific variables/information. This is great.

However - it doesn't look like I'm able to track conversions per ad using this 'lazy' method - am I? Is there a way to pass C1/C2/etc. variables like this?


09-11-2012 06:50 PM #11 js26 (Member)

I was obviously pretty tired last night. Solution with C variable:

[PHP]mydomain.com/include_script.php?t202id=12345&c1=ad01&t202kw=STM[/PHP]

<3


09-16-2012 09:16 AM #12 thedudeabides (Moderator)

Quote Originally Posted by zealous View Post
Just use this. This is also how I rotate p202 LPs for split testing... super easy because it will load a random LP you want to test and you don't have to worry about passing any GET variables in PHP or anything...
...I can't believe I didn't think to do it this way. I'd still duplicate ads with a desktop editor though on Adwords since it's going to mess with your QS and they don't like truly dynamic pages.


Home > Paid Traffic Sources > Search / PPC (Adwords, Bing, etc.)