Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1425 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Where to paste analytics code?

Thread title: Where to paste analytics code?
Reply    
    Thread tools Search this thread Display Modes  
03-08-2011, 12:21 PM
#1
Svenbrian is offline Svenbrian
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
 
Posts: 32
iTrader: 0 / 0%
 

Svenbrian is on a distinguished road

  Old  Where to paste analytics code?

My site uses a php template with worpress. How do I add analytics code without a index.HTML file?

Reply With Quote
03-08-2011, 12:25 PM
#2
niksonpatel is offline niksonpatel
Status: I'm new around here
Join date: Mar 2011
Location: India
Expertise: SEO
Software: html,Excel, Notepad
 
Posts: 7
iTrader: 0 / 0%
 

niksonpatel is on a distinguished road

  Old

Inserting Google Analytics Code for Most Sites

* To insert the Google Analytics code, you need to get into the HTML of your page.
* If you are using a service like WordPress, you'll need to open the footer.php file to place this code.

1. Find the </body> tag at the very bottom, just above the </html> page.
2. Do you see the code urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost() above the </body> tag? If so, you must paste the Google Analytics Javascript above that code. If not, paste it immediately above the </body> tag.
3. If you have templates, insert the code into them as well.
4. Once you have uploaded the pages back to your site, you can begin tracking information.

Reply With Quote
03-08-2011, 02:51 PM
#3
Svenbrian is offline Svenbrian
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
 
Posts: 32
iTrader: 0 / 0%
 

Svenbrian is on a distinguished road

  Old

Originally Posted by niksonpatel View Post
Inserting Google Analytics Code for Most Sites

* To insert the Google Analytics code, you need to get into the HTML of your page.
* If you are using a service like WordPress, you'll need to open the footer.php file to place this code.

1. Find the </body> tag at the very bottom, just above the </html> page.
2. Do you see the code urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost() above the </body> tag? If so, you must paste the Google Analytics Javascript above that code. If not, paste it immediately above the </body> tag.
3. If you have templates, insert the code into them as well.
4. Once you have uploaded the pages back to your site, you can begin tracking information.
I did not see the stuff in #2 as you described, so I just posted the code in my the footer.php file. I don't understand #3. What do you mean by templates? I only have one template, called the "Innovation Theme". I only posted the code in that themes footer.php file like you said.

Reply With Quote
03-08-2011, 04:21 PM
#4
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 3,164
iTrader: 15 / 86%
 

Dan is an unknown quantity at this point

  Old

Once its pasted into the footer it should work all throughout your site.

You have done it right.

Reply With Quote
03-08-2011, 04:42 PM
#5
Svenbrian is offline Svenbrian
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
 
Posts: 32
iTrader: 0 / 0%
 

Svenbrian is on a distinguished road

  Old

Thanks Dan

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed