|
|
|
|
Thread title: Where to paste analytics code? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
03-08-2011, 12:21 PM
|
#1
|
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
Posts: 32
|
Where to paste analytics code?
My site uses a php template with worpress. How do I add analytics code without a index.HTML file?
|
|
03-08-2011, 12:25 PM
|
#2
|
Status: I'm new around here
Join date: Mar 2011
Location: India
Expertise: SEO
Software: html,Excel, Notepad
Posts: 7
|
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.
|
|
03-08-2011, 02:51 PM
|
#3
|
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
Posts: 32
|
Originally Posted by niksonpatel
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.
|
|
03-08-2011, 04:21 PM
|
#4
|
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
Posts: 3,164
|
Once its pasted into the footer it should work all throughout your site.
You have done it right.
|
|
03-08-2011, 04:42 PM
|
#5
|
Status: Junior Member
Join date: Feb 2011
Location: Miami Beach, FL
Expertise:
Software:
Posts: 32
|
Thanks Dan
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|