Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
Google Analyics and htaccess files
Google Analyics and htaccess files
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Catalyst
Confirmed User
Join Date:
Jun 2003
Posts:
3243
Share
Post
#1
Google Analyics and htaccess files
04-15-2008, 09:53 PM
Someone told me I can use .htaccess files to call google analytical code.. Has anyone don't this?
Iron Fist
Too lazy to set a custom title
Join Date:
Dec 2006
Posts:
23400
Share
Post
#2
04-15-2008, 10:11 PM
Done it, but its tricky because you'll be inserting code into the header... all your scripts in PHP will fuck up..
i like waffles
Comment
Post
Cancel
Catalyst
Confirmed User
Join Date:
Jun 2003
Posts:
3243
Share
Post
#3
04-15-2008, 10:15 PM
ok.. but on static pages it works good.?
Comment
Post
Cancel
Iron Fist
Too lazy to set a custom title
Join Date:
Dec 2006
Posts:
23400
Share
Post
#4
04-15-2008, 10:23 PM
Originally posted by
Catalyst
ok.. but on static pages it works good.?
Yup, no problem.
Code:
php_value auto_prepend_file "/var/www/domain.com/google.txt"
then make a notepad with the Google code and save it as google.txt where you said in the htaccess file.
Enjoy.
i like waffles
Comment
Post
Cancel
Catalyst
Confirmed User
Join Date:
Jun 2003
Posts:
3243
Share
Post
#5
04-15-2008, 10:29 PM
thanks..
Yea.. I some of my tours static.. so that would be great..
Originally posted by
sharphead
Yup, no problem.
Code:
php_value auto_prepend_file "/var/www/domain.com/google.txt"
then make a notepad with the Google code and save it as google.txt where you said in the htaccess file.
Enjoy.
Comment
Post
Cancel
brandonstills
Confirmed User
Join Date:
Dec 2007
Posts:
1964
Share
Post
#6
04-15-2008, 11:15 PM
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.
Brandon Stills
Industry and programming veteran
[email protected]
| skype: brandonstills | ICQ #495-171-318
Comment
Post
Cancel
Catalyst
Confirmed User
Join Date:
Jun 2003
Posts:
3243
Share
Post
#7
04-15-2008, 11:21 PM
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
Comment
Post
Cancel
brandonstills
Confirmed User
Join Date:
Dec 2007
Posts:
1964
Share
Post
#8
04-15-2008, 11:23 PM
Originally posted by
Catalyst
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
.htaccess already applies to subfolders
Brandon Stills
Industry and programming veteran
[email protected]
| skype: brandonstills | ICQ #495-171-318
Comment
Post
Cancel
NinjaSteve
Too lazy to set a custom title
Join Date:
Dec 2003
Posts:
11089
Share
Post
#9
04-15-2008, 11:27 PM
Too bad it messes up the PHP files. A way around that would be golden.
...
Comment
Post
Cancel
V_RocKs
Damn Right I Kiss Ass!
Join Date:
Nov 2003
Posts:
32451
Share
Post
#10
04-16-2008, 03:31 AM
auto_append_file
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment