Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-15-2008, 10:53 PM   #1
Catalyst
Confirmed User
 
Catalyst's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vegas
Posts: 3,243
Google Analyics and htaccess files

Someone told me I can use .htaccess files to call google analytical code.. Has anyone don't this?
Catalyst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2008, 11:11 PM   #2
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
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
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2008, 11:15 PM   #3
Catalyst
Confirmed User
 
Catalyst's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vegas
Posts: 3,243
ok.. but on static pages it works good.?
Catalyst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2008, 11:23 PM   #4
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
Quote:
Originally Posted by Catalyst View Post
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
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-15-2008, 11:29 PM   #5
Catalyst
Confirmed User
 
Catalyst's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vegas
Posts: 3,243
thanks..

Yea.. I some of my tours static.. so that would be great..



Quote:
Originally Posted by sharphead View Post
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.
Catalyst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2008, 12:15 AM   #6
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2008, 12:21 AM   #7
Catalyst
Confirmed User
 
Catalyst's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vegas
Posts: 3,243
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
Catalyst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2008, 12:23 AM   #8
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by Catalyst View Post
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
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2008, 12:27 AM   #9
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Too bad it messes up the PHP files. A way around that would be golden.
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-16-2008, 04:31 AM   #10
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,422
auto_append_file
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.