.htaccess to include tracking code

Discussion in 'Site & Server Administration' started by Mmecca, Apr 6, 2009.

  1. #1
    I use Mint to track visitors on all my sites, and include the code it gives me in all the pages I want to track. I would like to however, include the code without it showing up in the html source code.

    The code it gives it is this..

    <script src="/mint/?js" type="text/javascript"></script>
    Code (markup):
    I would like to use .htaccess to specifiy what page(s) this code is to be used on, but without it showing up in the source.

    Something like 'Page = http://mysite.com/directory/page.php include this <script src="/mint/?js" type="text/javascript"></script>'


    Is this possible, or am I just dreaming?
     
    Mmecca, Apr 6, 2009 IP