I have a web site hosted on an Apache web server. Another person uploads static HTML files to a folder each week via FTP generated from third party software.
I am looking to insert Goggle Analytics code on each page when it is rendered while preserving the URL’s, original HTML, and process of uploading. I do not know when the files are uploaded or the page names (there are 100s of files uploaded each time).
I initially thought of setting the HTML to be parsed with the PHP engine; however, this is not suitable as the pages do not contain PHP code and I do not modify the HTML pages through find and replace.
Is there a way to use the PHP engine to process the page injecting code just before the end of the page or some other approach?
Well this would be a simple way, jsut to give you an idea
in .htaccess in the top level directory of the published html files:
in index.php: