I am trying to track a redirect page with google analytics:
I have a page called redirect.php; when I visit an url like redirect.php?c=12345678 , a php function does a query on a sql lookup table to decode the code 12345678 with a previously inserted url, then does a 301 redirect.
(I'm doing a 301 redirect to avoid duplicate content.)
I wish to track every single visit to redirect.php with analytics, but I can't.
For example:
redirect.php?c=87654321 redirects to story.php.
Obviously in Analytics I can't find the redirect.php page. the story.php referer is organic/google so I can't rely on the referer.
Is it possible to track every redirect in some ways?