Forums / All Other Contributions/Addons / Google analytics problem installing

Google analytics problem installing

Locked

Started by sheila123 on 15 Mar 2009, 12:28 PM · Views: 1,670

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
15 Mar 2009, 12:28 PM
#1
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Google analytics problem installing

I'm trying to install an add on for google analytics. In the Read me info, it's telling me to install a piece of code into this file

/includes/templates/[your_template]/common/tpl_main_page.php

(my template is ''classic") I do NOT have this file. Searched throughtout my file manager, seached in Developers tool kit. Other templates that I DON'T use, that are in my directories DO have this file. But my template doesn't.

Any suggestions? Is there a simpler way to install google an?

The add on I'm trying to install is here

15 Mar 2009, 4:16 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Google analytics problem installing

Zen-Venom Get Bitten

15 Mar 2009, 4:52 PM
#3
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Google analytics problem installing

Huh? Holy cow. Does this mean I have to re-do my whole site from scratch?

15 Mar 2009, 5:08 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Google analytics problem installing

Huh? Holy cow. Does this mean I have to re-do my whole site from scratch?
NO! Read the tutorials

Just create a folder named for your template and replicate in all places where you have edited files that exist in a classic folder.

Copy these edited contents from classic folders to your folders

Create a template_info.php with your template name now select it from the admin and reset the side boxes - you will have to re-do your sidebox selections and order

Now when you upgrade and all classic folder contents get overwritten, your customizations are safe

Zen-Venom Get Bitten

15 Mar 2009, 5:17 PM
#5
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Google analytics problem installing

Thank you SO much. OMG, I almost had a coronary! lol. I was just reading the links (above). Very helpful. It's funny when I started this site, I just assumed that CLASSIC was an 'option' of templates available for use. So I just didn't read that whole thing about Classic Templates. Big BIG DUH. :oops:

Thanks again, I really appreciate all your help.

15 Mar 2009, 5:20 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Google analytics problem installing

Back to your original issue:
/includes/templates/[your_template]/common/tpl_main_page.php

Just make a copy of this file from
/includes/templates/template_default/common/tpl_main_page.php

And place it in your template after adding the Google code

Zen-Venom Get Bitten

15 Mar 2009, 5:28 PM
#7
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Google analytics problem installing

Thank you so much again. I suppose that would explain the reason why I didn't have that file in my classic template!
What a moron I am. Oh, I just feel so dumb.

I sure hope that all your nice-ities come back to you ten fold. You've really saved me here. Thanks again.

15 Mar 2009, 6:10 PM
#8
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Google analytics problem installing

Totally Zenned, hope you are still here. :)
I'm adding all the files now for my custom template.
It's not as bad as I thought. But I'm wondering....for instance, under:
includes
languages
english
modules
order total

there was already 'classic'. So I added my new template: CustomAventine

Now, before I added the new folder, CustomAventine...there were already a list of files under there ie. ot_cod_fee.php, ot_coupon.php and etc etc.

I don't have to copy all those folders, right? They will be used by the new CustomAventine template without me doing anything to those, correct?

16 Mar 2009, 3:53 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Google analytics problem installing

I don't have to copy all those folders, right? They will be used by the new CustomAventine template without me doing anything to those, correct?
Not folders - only files - look in the folders for a classic if there then the files in that folder can be overriden.

ONLY copy the files that you have to edit to the override folder(s) If you do not need to edit it then DO NOT copy the file. The default files will be used if there is not an edited copy in an override folder

Zen-Venom Get Bitten

21 Mar 2009, 10:40 PM
#10
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Google analytics problem installing

I'm still having issues with this:

Back to your original issue:
/includes/templates/[your_template]/common/tpl_main_page.php

Just make a copy of this file from
/includes/templates/template_default/common/tpl_main_page.php

And place it in your template after adding the Google code 

My issue:
Under includes/templates/CUSTOM
I only have the following folders:
css
images
template_info.php

I do not have a Common folder. (or any of the other multiple folders that template_default has.)

*I originally created my site using CLASSIC (thinking it was a template choice. I know, duh) I've since copied all that and saved as my own template. But now I'm thinking I missed all this stuff re: COMMON folder, etc etc.

Are ALL the folders under template_default supposed to be copied?
And if so, are all the FILES inside them supposed to be copied as well and put under CUSTOM so that the CUSTOM (in the file manager) looks JUST LIKE the list and contents of the template_default?

Thanks. :shocking:

22 Mar 2009, 7:38 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Google analytics problem installing

Are ALL the folders under template_default supposed to be copied?
And if so, are all the FILES inside them supposed to be copied as well and put under CUSTOM so that the CUSTOM (in the file manager) looks JUST LIKE the list and contents of the template_default?
NO
Just create any of the folders there in the template_default that contain files that you are going to edit.
Then only place/copy the files that you edit to your template

Zen-Venom Get Bitten

23 Aug 2010, 3:32 PM
#12
summit61 avatar

summit61

New Zenner

Join Date:
Aug 2010
Posts:
4
Plugin Contributions:
0

Re: Google analytics problem installing

Hi,
I, too, based my template on the Classic template. I named it differently and I created subfolder common within my template folder. I tried editing the tpl_header.php file or the tpl_footer.php from template_default/common to hold my Google Analytics code but in tpl_header.php it goes within the body tag, and in the bottom of the tpl_footer.php file it is not dead above the /body tag but rather between the eof- site copyright display code and the bof- parse time display code.
Can anyone help?
Thanks.

23 Aug 2010, 3:40 PM
#13
summit61 avatar

summit61

New Zenner

Join Date:
Aug 2010
Posts:
4
Plugin Contributions:
0

Re: Google analytics problem installing

I think I found the answer: the file to edit is html_header.php.

:clap: