GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP & Google Analytics question... (https://gfy.com/showthread.php?t=959621)

pradaboy 03-22-2010 08:06 AM

PHP & Google Analytics question...
 
If I use a php redirect to send my traffic to the destination url can I still include google analytics on this redirect.php to track the traffic or will it have no chance of loading since it redirects immediately?

grumpy 03-22-2010 08:10 AM

depends where you do the forward and how

nation-x 03-22-2010 08:11 AM

Quote:

Originally Posted by pradaboy (Post 16966929)
If I use a php redirect to send my traffic to the destination url can I still include google analytics on this redirect.php to track the traffic or will it have no chance of loading since it redirects immediately?

Not with a php redirect

pradaboy 03-22-2010 08:23 AM

Quote:

Originally Posted by grumpy (Post 16966932)
depends where you do the forward and how

creative (popup/text link/banner) -> redirect.php -> which redirects to the affiliate url

basically I just want to be able to track stats on my server for all affiliate advertising I do.

borked 03-22-2010 11:34 AM

you will need to use javascript to redirect, not php
analytics javascript, then the redirect javascript

<script language="JavaScript"><!--
window.location="http://nextjump.com";
//--></script>

grumpy 03-22-2010 01:35 PM

Quote:

Originally Posted by borked (Post 16967499)
you will need to use javascript to redirect, not php
analytics javascript, then the redirect javascript

<script language="JavaScript"><!--
window.location="http://nextjump.com";
//--></script>


dont forget to set the metatag to for if they have javascript disabled
Code:

<META http-equiv="refresh" content="1;URL=yoururl">

BestXXXPorn 03-22-2010 02:17 PM

There's a better way, use event tracking...

On outbound links (anchor tags) add a onclick="pageTracker._trackEvent('blah', 'blah', 'blah');"

I don't even bother with a redirect any more, I just track the page it was clicked from, position of the click within the page, and the site it was sent to. Very accurate, very simple, and faster for the user not having to do some redirect BS :P

pradaboy 03-23-2010 02:10 PM

Quote:

Originally Posted by BestXXXPorn (Post 16968080)
There's a better way, use event tracking...

On outbound links (anchor tags) add a onclick="pageTracker._trackEvent('blah', 'blah', 'blah');"

I don't even bother with a redirect any more, I just track the page it was clicked from, position of the click within the page, and the site it was sent to. Very accurate, very simple, and faster for the user not having to do some redirect BS :P

For this you would have to have control over the page your ad is displayed on, correct?


All times are GMT -7. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123