![]() |
Google Analyics and htaccess files
Someone told me I can use .htaccess files to call google analytical code.. Has anyone don't this?
|
Done it, but its tricky because you'll be inserting code into the header... all your scripts in PHP will fuck up..
|
ok.. but on static pages it works good.?
|
Quote:
Code:
php_value auto_prepend_file "/var/www/domain.com/google.txt"Enjoy. |
thanks..
Yea.. I some of my tours static.. so that would be great.. Quote:
|
That's what footers and layouts are for. So you don't have to modify 300 files when you want to make just 1 change. I hate it when I take over sites and they just copy and paste the same HTML over and over in every file.
|
Yea..
most of my sites have a footer.. and a header... however I know I can append and prepend.. I am just not sure how to inherit the .htaccess to subfolders |
Quote:
|
Too bad it messes up the PHP files. A way around that would be golden.
|
auto_append_file
|
| All times are GMT -7. The time now is 10:53 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123