Advertisement:

Author Topic: Adding Statcounter to Modern Theme  (Read 1304 times)

nigelnix1

  • Newbie
  • *
  • Posts: 5
Adding Statcounter to Modern Theme
« on: August 30, 2014, 12:56:22 pm »
Hi Guys,

I would like to install the Statcounter code on my Modern theme but can't find the position (/body) as stated on Statcounter installation instructions. Where do I need to install the code?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Adding Statcounter to Modern Theme
« Reply #1 on: August 30, 2014, 03:20:36 pm »
It is on every template page, what do you mean you cannot find it?

Keep in mind that stat counters are perfect backlink building tools for their owners... If you need real analytic tool for your website go for Google or Piwik.

Regards

nigelnix1

  • Newbie
  • *
  • Posts: 5
Re: Adding Statcounter to Modern Theme
« Reply #2 on: August 31, 2014, 12:03:05 pm »
I see only PHP and <div> on every template page of the Modern Theme...can you please point me to a template page where there is a </body> tag? I would really appreciate it.  ;)

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Adding Statcounter to Modern Theme
« Reply #3 on: August 31, 2014, 12:12:16 pm »
Are you in admin folder??

nigelnix1

  • Newbie
  • *
  • Posts: 5
Re: Adding Statcounter to Modern Theme
« Reply #4 on: August 31, 2014, 07:30:04 pm »
In "Modern Theme" admin folder there are 3 files... header.php, map_settings.php and settings.php , none of which have a </body> tag.

nigelnix1

  • Newbie
  • *
  • Posts: 5
Re: Adding Statcounter to Modern Theme
« Reply #5 on: August 31, 2014, 08:51:43 pm »
ok... I didn't find the </body> tag but I inserted the Statcounter code here:

/public_html/oc-content/themes/modern/footer.php

I downloaded this footer.php file with Filezilla and edited the file in Notepad++ and inserted the Statcounter code at line 41 of the footer.php where the footer div is located. Then uploaded it again.

It is working now, thank you for your responses.