Advertisement:

Author Topic: javascript code for track visitors  (Read 1727 times)

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
javascript code for track visitors
« on: November 21, 2014, 09:38:19 pm »
hello, I use Histats.com to track my visitors. I put the code at my footer.php but his system dont track my site
where can I put the code?

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: javascript code for track visitors
« Reply #1 on: November 21, 2014, 09:44:19 pm »
why not google analytics?

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: javascript code for track visitors
« Reply #2 on: November 21, 2014, 10:23:54 pm »
@AdMeGreek
I think so as well, Google Analytics is very reliable tool and gives all information you need :)

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Re: javascript code for track visitors
« Reply #3 on: November 21, 2014, 10:47:15 pm »
I use the plugin from market, I put the ID UA-....
BUT I dont see anything at Google Analytics...

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: javascript code for track visitors
« Reply #4 on: November 22, 2014, 04:26:19 am »
@AdMeGreek
In any case, it is problem of plugin, not google analytics. Try to follow their rules how to add code to your website (do not use any plugin).

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Re: javascript code for track visitors
« Reply #5 on: November 22, 2014, 04:42:09 am »
I have javascript code from clicky.com, I try to put the code at footer.php but dont veirfy the code...

Do you know if osclass script support javascript codes?

Aficionado

  • Guest
Re: javascript code for track visitors
« Reply #6 on: November 22, 2014, 04:57:20 am »
Analytics is added at the header, as Google suggests.

Not sure why Osclass Analytics plugin insists to add it at the footer.


AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Re: javascript code for track visitors
« Reply #7 on: November 22, 2014, 05:00:39 am »
Analytics is added at the header, as Google suggests.

Not sure why Osclass Analytics plugin insists to add it at the footer.

I try any java code without luck, header and footer. I dont know what happend

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: javascript code for track visitors
« Reply #8 on: November 24, 2014, 07:45:03 pm »
you are conflicting your codes. they have to be in a certain order, that is why they put the analytics in the footer.
 it has something to do with the osc_enqueue_script

also need to give google some time to slurp the page  :P