TV202 Prosper202 Tracking202 Export202 WorldProxy202 Meetup202 | Blog Forum Newsletter Twitter | Advertise
Login · Register
Home About Docs Scripts Blog Forums Hosting Donate Download
Before Posting, Have You Read the FAQ? And Have You Searched? If Not Please Do!

Attn: The 202 Support Forum will now be revised
Within the next few weeks the Tracking202 Support Forum will be revised. Some threads will be shut down or reorganized. New rules will be put in place to accommodate those who need help. The 202 team wants to make the forum a more user friendly place for new and old affiliates. We want to make this forum a place for affiliates to help each other be successful.

PPC to redirect PHP

Post new topic Reply to topic Prosper202 Forum Index » The Lounge
New Posts Search Forum
Author Message
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 17th, 2008 at 10:32am Post subject: PPC to redirect PHP Reply with quote

Hi,

I am looking into putting the destination URL in the PPC ad to one of my redirect PHP files (i.e. www.example.com/redirect.php) that will automatically redirect the user to the affiliates site.

So, this is kind of a mixed situation between direct linking and a landing page.

I was hoping to get help about which pieces of the puzzle I needed to use to get this working.

Thanks,

Guy

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 17th, 2008 at 2:08pm Post subject: Re: PPC to redirect PHP Reply with quote

Hey guy, are you trying to do a PHP header redirect on your landing page, or a meta refresh/javascript on your landing page?

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Feb 17th, 2008 at 5:30pm Post subject: Re: PPC to redirect PHP Reply with quote

I think what you are trying to do is have a custom redirect page that sends to the offer page such as www.example.com/redirect.php to www.offerpage.com.

If this is what you are trying to do, use the direct linking, grab the direct link code, and put that in the redirect.

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 17th, 2008 at 6:46pm Post subject: Re: PPC to redirect PHP Reply with quote

Hi,

Thank you.

Yes, I do not want to have an actual landing page, I want to do "direct linking" via the www.example.com/redirect.php that will immediately transfer the user to the www.offerpage.com.

If I put the direct linking code in the php header redirect, will the parameters from Google/Yahoo/MSN (mainly the keywords I guess) be transfered correctly to the link inside the PHP? Won't I need to use PHP parameters in some way to catch the info and add it to the tracking202 link?

Thank you again for your help.

Guy

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Feb 17th, 2008 at 9:44pm Post subject: Re: PPC to redirect PHP Reply with quote

Yes you would. There is a section in the get tracker code that explains adding the php linking. You could wait till Wes responds further on this. I do mine a little differently.

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 17th, 2008 at 11:19pm Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi,

Thank you.

Yes, I do not want to have an actual landing page, I want to do "direct linking" via the www.example.com/redirect.php that will immediately transfer the user to the www.offerpage.com.

If I put the direct linking code in the php header redirect, will the parameters from Google/Yahoo/MSN (mainly the keywords I guess) be transfered correctly to the link inside the PHP? Won't I need to use PHP parameters in some way to catch the info and add it to the tracking202 link?

Thank you again for your help.

Guy

Hey Guy, I believe this is what you want to do

http://tracking202.com/forum/1/1/tracking-urls-from-datafeed#689

Is that what you were looking for? This is where you host the redirect yourself, your domain, will load the t202 javascript, which the javascript stores the new url the visitor is supposed to be redirected to in a cookie, and then you access that new url via javascript again and meta refresh/javascript redirect out.

Does this help?

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 18th, 2008 at 4:09am Post subject: Re: PPC to redirect PHP Reply with quote

Hi,

Thanks for the reference. It seems that we have similar goals.

I just want to be sure I understand correctly:

1) I put "www.example.com/redirect.php" in the ad target url (without {keyword} or something like that).

2) In the "redirect.php" on my server i put the following code:

<html>

<head>

</head>

<body>

<script src="http://static.tracking202.com/lp/81312/landing.js" type="text/javascript"></script>

<script type="text/javascript">

var newUrl = readCookie('tracking202outbound');

window.location=newUrl;

</script>

</body>

</html>

And that should work?

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 18th, 2008 at 8:24am Post subject: Re: PPC to redirect PHP Reply with quote

Correction,

I think I need to put in the destination URL in the ad something like this:

http://www.example.com/redirect.php?t202id=123456&t202kw=

or

http://www.example.com/redirect.php?t202id=123456&t202kw={keyword}

With the above code in the redirect.php file?

Am I correct? Anything else needed to be done?

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 18th, 2008 at 8:25am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi,

Thanks for the reference. It seems that we have similar goals.

I just want to be sure I understand correctly:

1) I put "www.example.com/redirect.php" in the ad target url (without {keyword} or something like that).

2) In the "redirect.php" on my server i put the following code:

<html>

<head>

</head>

<body>

<script src="http://static.tracking202.com/lp/81312/landing.js" type="text/javascript"></script>

<script type="text/javascript">

var newUrl = readCookie('tracking202outbound');

window.location=newUrl;

</script>

</body>

</html>

And that should work?

Yes that should work, as long as the user has javascript, you can also put something like, click here to be forwarded if they diddn't hava javascript. Because if they don't have javascript it won't read the javascript redirected.

----

<body>

<a href="<? echo $_COOKIE['tracking202outbound']; ?>">Click here to be redirected</a>, if you weren't done so automatically.

</body>

--

again make sure the javascript is called first before executing this command.

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 18th, 2008 at 8:49am Post subject: Re: PPC to redirect PHP Reply with quote

Great,

I really appreciate the help.

I started testing it a bit and it seems to be working.

Thanks,

Guy

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 18th, 2008 at 8:53am Post subject: Re: PPC to redirect PHP Reply with quote

Hi,

Regarding the last code snippet.

If the user has JS disabled, wouldn't this mean that the user doesn't have a cookie to read from?

Thanks

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 18th, 2008 at 12:33pm Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi,

Regarding the last code snippet.

If the user has JS disabled, wouldn't this mean that the user doesn't have a cookie to read from?

Thanks

Your correct, to fix that do this

http://tracking202.com/forum/1/1/tracking-urls-from-datafeed#804

Let me know if that helps

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 19th, 2008 at 5:31am Post subject: Re: PPC to redirect PHP Reply with quote

Hi Wes,

I tested the method you suggested, but I am still not getting the subid when testing this on a browser disabled JS (because the cookie does not exist).

The code I used is:

<a href="<? echo $yourAffiliateUrl . $_COOKIE['tracking202subid']; ?>">Click here to be redirected</a>, if you weren't done so automatically.

Is that the one you ment I should use?

I looked in the "#6 Get LP Code" at the "Landing Page: Outbound PHP Redirect Code" and I see that if a cookie does not exists, you use the "http://redirect.tracking202.com/lp/123456" URL.

If I use this url, in the link for "if you were not forwarded...", does it mean that I will still not get the Ad and the Keyword in T202?

Thanks,

Guy

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 19th, 2008 at 9:32am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi Wes,

I tested the method you suggested, but I am still not getting the subid when testing this on a browser disabled JS (because the cookie does not exist).

The code I used is:

<a href="<? echo $yourAffiliateUrl . $_COOKIE['tracking202subid']; ?>">Click here to be redirected</a>, if you weren't done so automatically.

Is that the one you ment I should use?

I looked in the "#6 Get LP Code" at the "Landing Page: Outbound PHP Redirect Code" and I see that if a cookie does not exists, you use the "http://redirect.tracking202.com/lp/123456" URL.

If I use this url, in the link for "if you were not forwarded...", does it mean that I will still not get the Ad and the Keyword in T202?

Thanks,

Guy

Sorry for making this so confusion ok on the first one:

<a href="<? echo $yourAffiliateUrl . $_COOKIE['tracking202subid']; ?>">

--

That Will work if you set the $yourAffiliateUrl,

so

$yourAffiliateUrl = 'http://example.com?subid=';

and then basically If the Meta Refresh Failed (And the USER does not have javascript) They would see a link for

<a href="http://example.com?subid=">click here</a>

And the subid spot would be left blank, but if they click it will still goto your URL, there just won't be any subid tracking. Thats why its like this:

---

<a href="<? echo $yourAffiliateUrl . $_COOKIE['tracking202subid']; ?>">

Making the link, with ur affiliate URL, and echoing out the SUBID at the end (if it exists)

-----

Correct if the cookie does not exist, the script uses: http://redirect.tracking202.com/lp/123456 to redirect. Any its basically yes, a outgoing redirect link but it does not record anything. (The link does have a purpose, but in this scenario it doesn't)

Does that help clear it up more?

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 20th, 2008 at 1:20am Post subject: Re: PPC to redirect PHP Reply with quote

Hi Wes,

Yep, I got it now. I thought I was missing something...

Just as an enhancement request, since I have the t202id and t202kw parameters in my "transfer.php" file, I could send them to tracking202 via parameters, something like:

<a href="<? echo 'www.offersite.com?t202id=' . $_GET['t202id'] . '&t202kw=' . $GET['t202kw'] ?>Click Here</a>

I think maybe an option like this would also make tracking from non PPC sources possible.

Thanks,

Guy

Back to top
LilMangoKitten
Email MSN AIM


Joined: Dec 11th, 2007
Posts: 92

Post Posted: Feb 20th, 2008 at 1:25am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi Wes,

Yep, I got it now. I thought I was missing something...

Just as an enhancement request, since I have the t202id and t202kw parameters in my "transfer.php" file, I could send them to tracking202 via parameters, something like:

<a href="<? echo 'www.offersite.com?t202id=' . $_GET['t202id'] . '&t202kw=' . $GET['t202kw'] ?>Click Here</a>

I think maybe an option like this would also make tracking from non PPC sources possible.

Thanks,

Guy

T202 was built for Affiliate Marketers using PPC, however.

Back to top
T202Steven
Website Email


Joined: Dec 4th, 2007
Posts: 2400

Post Posted: Feb 20th, 2008 at 1:41am Post subject: Re: PPC to redirect PHP Reply with quote

LilMangoKitten wrote:

T202 was built for Affiliate Marketers using PPC, however.

There is always room for improvement and to expand to other territories. Free mediums are a good viable source to consider. I guess in this case it'd be FPC. LOL

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 20th, 2008 at 10:15am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi Wes,

Yep, I got it now. I thought I was missing something...

Just as an enhancement request, since I have the t202id and t202kw parameters in my "transfer.php" file, I could send them to tracking202 via parameters, something like:

<a href="<? echo 'www.offersite.com?t202id=' . $_GET['t202id'] . '&t202kw=' . $GET['t202kw'] ?>Click Here</a>

I think maybe an option like this would also make tracking from non PPC sources possible.

Thanks,

Guy

Ok, awesome guy glad you got it to work. Thanks for the suggestion to be honest we are extremely backed on on feature requests on this moment, but in the feature it would have to be something we add is tracking from non PPC sources. I agree that would be a good addition. But I have added it to the to do list in the future additions, we are primarily still focused on the PPC so it probably wouldn't be for awhile if at all within 6 months to track organic results unfortunately.

We do have some incredible feature sets with Tracking202 we are going to release in 2-5 months, redoing the whole entire system!

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 21st, 2008 at 10:23am Post subject: Re: PPC to redirect PHP Reply with quote

Hi,

Just wanted to clarify that my suggestion was aimed for overcoming the javascript limitation by allowing usage of url parameters. (the non-ppc sources suggestion could/would be a by product...)

Guy

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 21st, 2008 at 10:25am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Hi,

Just wanted to clarify that my suggestion was aimed for overcoming the javascript limitation by allowing usage of url parameters. (the non-ppc sources suggestion could/would be a by product...)

Guy

Hm ok, I think I'm still a little confused then, are just trying to do a php header redirect then on theses scripts of yours correct?

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 21st, 2008 at 11:26am Post subject: Re: PPC to redirect PHP Reply with quote

Yes, I want to immediately redirect the user to the offer site.

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 22nd, 2008 at 12:33am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
Yes, I want to immediately redirect the user to the offer site.

Ok, so just to review. Sorry if I'm not following you completely, we originally fixed the first situation correct? And then the last is a suggestion you would like to see implemented correct? At this time we unfortunately don't have any good method to track organic non PPC leads/sales.

---

Sorry if I sound alittle confused here to be honest I'am, I just re-read the whole thread again and got alittle bit lost.

--

Are you basically just trying to force a new t202id, and a new t202kw through PHP, or javascript *instead of* having it always be taken from the url?

And then we got the first situation correct, with the new redirections, and know your wondering how to force a new t202id, and a new t202kw in your redirects, (regardless if there is, or isn't any of those variables in the url)?

Back to top
guy123


Joined: Feb 17th, 2008
Posts: 36

Post Posted: Feb 24th, 2008 at 5:42am Post subject: Re: PPC to redirect PHP Reply with quote

heh, now you got me confused...

I will try to explain the scenario from the begining:

1) I wanted to use a "mixed mode" where I was directing the PPC traffic to my "redirect.php" file, but instead of it being a landing page, I wanted the "redirect.php" to immediately redirect the click to the offer page.

This part I was able to accomplish with your help.

2) I wanted to enable the "redirect.php" file for users without javascript.

So far I can do this in a manner that allows the users to click through to the offer page, but not track them fully.

My Suggestion:

In my "redirect.php" file I have access to the required parameters (the t202id and the t202kw), so rather than losing the tracking information about the user, I could pass these paramers directly to T202 (without the use of the cookie, since there is no cookie, since the user has javascript disabled).

This could be achieved in a manner like this (in my redirect.php file):

"http://redirect.tracking202.com/lp/123456?t202id=' . $_GET['t202id'] . '&t202kw=' . $GET['t202kw']"

or something similar.

Note: These are not new t202id and t202kw parameters, but rather the parameters I get from the PPC target url (that would have naturally been passed in the first place to T202 via a cookie if the user had had javascript enabled).

I hope this makes things clearer, if not please ask and I will try to clarify further.

Thanks,

Guy

Back to top
T202Wes
Website Email Twitter Facebook AIM


Joined: Oct 20th, 2007
Posts: 4342

Post Posted: Feb 26th, 2008 at 6:50am Post subject: Re: PPC to redirect PHP Reply with quote

guy123 wrote:
heh, now you got me confused...

I will try to explain the scenario from the begining:

1) I wanted to use a "mixed mode" where I was directing the PPC traffic to my "redirect.php" file, but instead of it being a landing page, I wanted the "redirect.php" to immediately redirect the click to the offer page.

This part I was able to accomplish with your help.

2) I wanted to enable the "redirect.php" file for users without javascript.

So far I can do this in a manner that allows the users to click through to the offer page, but not track them fully.

My Suggestion:

In my "redirect.php" file I have access to the required parameters (the t202id and the t202kw), so rather than losing the tracking information about the user, I could pass these paramers directly to T202 (without the use of the cookie, since there is no cookie, since the user has javascript disabled).

This could be achieved in a manner like this (in my redirect.php file):

"http://redirect.tracking202.com/lp/123456?t202id=' . $_GET['t202id'] . '&t202kw=' . $GET['t202kw']"

or something similar.

Note: These are not new t202id and t202kw parameters, but rather the parameters I get from the PPC target url (that would have naturally been passed in the first place to T202 via a cookie if the user had had javascript enabled).

I hope this makes things clearer, if not please ask and I will try to clarify further.

Thanks,

Guy

Ok yeah I agree, the javascript is an issue. The only way to track the non-javascript visitors is through the PHP redirects.

So it sounds like everything is working how it is now? And I think we might just need to add, some more extra support for non-javascript tracking. Which I believe can be achieved with a PIXEL tracking img SRC.

Back to top
trekandtech
Twitter Facebook Myspace MSN AIM


Joined: Apr 27th, 2009
Posts: 2

Post Posted: Sep 1st, 2009 at 9:04pm Post subject: Re: PPC to redirect PHP Reply with quote

Hey Wes,

I am working to accomplish very much what this thread covers but haven't quite got it.

I've created a campaign in P202 and have a destination URL in my PPC (domain.com/file.html?t202id=82027&t202kw=).

When using "Get LP Code" in P202 the code generated for - Inbound Javascript Landing Page Code, actually ends with a PHP extension and not .js

But my basic concept is like above;

goal is to simply drive traffic to a landing page that automatically redirects (refreshes) to the networks offer page.

I think of it as a direct refresh versus direct linking.

Thanks in advance, great software!

JC

Back to top
Post new topic Reply to topic Page 1 of 1

Creative Commons License This work (Prosper202, Tracking202 and Export202) is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.