View Single Post
Old 01-17-2015, 11:20 AM  
Smart Fred
Confirmed User
 
Smart Fred's Avatar
 
Industry Role:
Join Date: Mar 2008
Location: France
Posts: 308
Google analytics and PHP redirection pages

Hi guys,

From a few months I started using redirection pages to manage from one place my affiliation code I use on many galleries.

So I use such a code
Quote:
<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/(iPod|iPhone|android|blackBerry|symbianOS|opera mini|windows CE|nokia|sonyericsson|webOS|palmOS)/i', $agent)) {
header("location: http://my-affiliation-link-to-mobile-tour");
} else {
header("location: http://my-affiliation-link-to-classic-tour");
}
?>
in an index.php file in such a directory http://my-domain.com/go/program/

But I feel completely unable to get Google analytics stats for such a page.
So I'm unable to compare the amount I sent with the amount received on the affiliation program, and I'm also unable to define this page as a goal in Google Analytics.

Is there anyway to use Google Analytics stats and goals for such redirection pages ?

Thanks for your help.
__________________
Stop doing what you like and start doing what brings you money!
Smart Fred is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook