mihomes - 9:47 pm on Oct 5, 2012 (gmt 0)
Awhile back I made myself a simple php redirect script to make the changing of links across the site much easier to maintain. Is there any way at all possible to add Google Analytics code to track this page?
Since the headers are sent for the redirect it is causing a problem. I did find a post somewhere else about using obstart and obflush to echo the script code and while it did not cause any errors I was not able to verify in analytics.
Use the following link format:
$p = $_GET['p'];
$link = "/link1.htm";
$link = "/link2.htm";
$link = "/default.htm";
header('Content-Type: text/html; charset=utf-8');
header("X-Robots-Tag: noindex, nofollow, noarchive", true);
header("Location: $link"); // URL