|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: Oct 2006
Posts: 122
![]() | Hi, could you someone tell me how I can install the Google Analytics code on my website? Im using myphpadmin and i dont know which file im supposed to put the code in, there is 2 files for everypage, for example index.php and index.tpl (the tpl file is what i edit to change things around). Please if someone could tell me which file im supposed to edit and if i place it in the .tpl or .php file where would be the place to put it? By the way i've got the on other fourms to. as some forums perform better with different topics. hope thats cool... Thanks everyone Regards, Danny www.AussiePages.com.au |
| |
|
| |||||||
| | #2 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,844
![]() ![]() ![]() ![]() ![]() | If i were you i would open the notepad and place the analytics code to the blank file. Save it as for instance analytics.php and upload it into your server. You need to edit your footer.tpl or some similar file by adding this smarty code into that Code:
![]()
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory online marketing Free shopping cart |
| |
| | #3 |
| Member Join Date: Oct 2006
Posts: 122
![]() | np thanks will give that a go now. if it doesnt work, can i place the code directly in the header or footer.tpl file?? would that work? thanks mate |
| |
| | #4 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,844
![]() ![]() ![]() ![]() ![]() | If you have footer.tpl you may simply place the code into that, but i belive that you need to use the {literal} in this form. Code:
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory online marketing Free shopping cart Last edited 10-01-2007 at 05:04 AM. |
| |
| | #5 |
| Member Join Date: Oct 2006
Posts: 122
![]() | ok thanks heaps,,, do i need to enter the actull word {/literal} as you put it above? |
| |
| | #6 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,844
![]() ![]() ![]() ![]() ![]() | Yes, you needtzo insert the literal as i specified above. This will make the javascript work.
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory online marketing Free shopping cart |
| |
| | #7 |
| Member Join Date: Oct 2006
Posts: 122
![]() | hi, when i put the {/literal} it actully shows in the browser when viewing it online. have i done something wrong?? |
| |
| | #8 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,844
![]() ![]() ![]() ![]() ![]() | I'm a bit confused since wrapping the code with literal should work. Please let me see how you inserted the code into the footer.tpl file.
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory online marketing Free shopping cart |
| |
| | #9 |
| Member Join Date: Oct 2006
Posts: 122
![]() | {literal} <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1111111-1"; urchinTracker(); </script> {/literal} --------------this is where i put it, above the <body tage. <body <?php echo $javascript_onload; ?>> is that right?? there is no other body tags on the form |
| |
| | #10 |
| Member Join Date: Oct 2006
Posts: 122
![]() | hey never mind,,, its working now... thanks heaps for you help... |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How Can I improve my website...from Google Analytics | diligent_ss | Search Engine Optimization (SEO) | 9 | 09-27-2007 09:05 AM |
| Google Analytics versus Google webmaster Tools | Hdr | 3 | 09-24-2007 04:00 PM | |
| Google Analytics a catch 22? | Onlife | 6 | 08-21-2007 08:21 AM | |
| Is Google Analytics Working? | beamup | 2 | 08-09-2007 02:15 PM | |
| Google Analytics = Frustration | Onlife | 3 | 05-12-2007 10:57 PM | |