How can I make a "blank" website for tracking?

1 replies
  • WEB DESIGN
  • |
How can I create a "blank" website (for the purposes of installing tracking), that automatically redirects to another?

Maybe not "blank"...maybe a "page is loading" sort of thing for a few seconds before being redirected.

I just need a place to park some tracking and gather some stats.

Eventually I plan on having a landing page in place to capture leads, but for now I'm most interested in testing....stats kinda help .

Any recommendations?
#blank #make #redirect #tracking #website
  • Profile picture of the author Darren Mothersele
    can you use PHP on your server?

    If so then you can do this, in a file called something like redirect.php

    <?php
    $ logfile = "mylogfile.txt";
    $ f = fopen($ logfile, 'a');
    fwrite($ f, print_r($ _SERVER, TRUE));
    fclose($ f);
    header("Location: http://www.google.com");
    This code (1) opens a log file on the server (2) writes all the information the server has about the request into the log file (3) redirects to google.

    You can swap out the log file code with something that stores whatever info you are interested in into a database, and of course swap the redirect for the address you want to send to.

    For example: I have a much more advanced version of this script that I use to track MySpace pages. I embed a link to this in the MySpace profile to track, the redirect actually then redirects to an image that is displayed on the MySpace page. Before redirecting to the image I log information about the visitor, and I do Geo-tagging from their IP address so I can map which cities my visitors come from. nice!

    *edit - can't use dollar sign in code tags - remove spaces after $ in code to use it.
    {{ DiscussionBoard.errors[351918].message }}

Trending Topics