How To… Track traffic to your home page
Some article submission sites only allow you to enter your home page, with no paths or files after it. To track these impressions in GoTryTHIS, redirect them elsewhere, or otherwise track impressions on your home page within GoTryTHIS, here is what you do:
- Use FTP and rename your home page to something else, like home.html or index2.html. Make a note of the old file name, which is probably index.html or index.php.
- Create an index.php file with the following code, updated with your domain, but leaving “redirect.html” as is:
- Create a redirect link in GoTryTHIS from redirect.html to the new home page filename, home.html, in our example.
<?PHP
header( ‘Location: http://www.yoursite.com/redirect.html’ ) ;
?>
If this does not work, it is probably because your web server is expecting the home page to be at index.html, not index.php. This can easily be fixed by editing the .htaccess file and adding the following line:
DirectoryIndex index.php