Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-22-2010, 08:06 AM   #1
pradaboy
sell me your banners
 
Industry Role:
Join Date: Dec 2003
Location: on the tubes
Posts: 12,931
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?
__________________
Media Buyer - Sell me your traffic!
FREE to register domains...
Better than 99% of the crap sold here!
pradaboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 08:10 AM   #2
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
depends where you do the forward and how
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 08:11 AM   #3
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by pradaboy View Post
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
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 08:23 AM   #4
pradaboy
sell me your banners
 
Industry Role:
Join Date: Dec 2003
Location: on the tubes
Posts: 12,931
Quote:
Originally Posted by grumpy View Post
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.
__________________
Media Buyer - Sell me your traffic!
FREE to register domains...
Better than 99% of the crap sold here!
pradaboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 11:34 AM   #5
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
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>
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 01:35 PM   #6
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by borked View Post
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">
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2010, 02:17 PM   #7
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
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
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2010, 02:10 PM   #8
pradaboy
sell me your banners
 
Industry Role:
Join Date: Dec 2003
Location: on the tubes
Posts: 12,931
Quote:
Originally Posted by BestXXXPorn View Post
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?
__________________
Media Buyer - Sell me your traffic!
FREE to register domains...
Better than 99% of the crap sold here!
pradaboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.