Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: made lines a little bit more readable

JoomlaStats can be activated by using mod_jstats_activation or by putting activation code into the template (see FAQ How to Activate JoomlaStats?). 

There are 2 different aproaches to place the activation module/codeWe should differ 2 ways:
1) at the beginning (visitor will be able to see his entry)
2) at the end (the best performance)

The best is example.We'll further explain by giving an example:

We have installed the activation module and module Flags (mod_jstats_flags).

1) At the beginning (visitor will be able to see his entry)

If module activation will be placed before module flags, in module flags the visitor will see his entry in module flags. If activation module/code will be after module flags, visitor will not see his entry, because his entry will be counted later - by module activation.

...

2)

...

 A.

...

At the end (the best performance)

If this is possible You can put "activation by template code" or mod_jstats_actiavtion after Sometimes it's possible to put the activation module/code after the body close tag (</BODY>) or even after (</HTML>) tag . This (in the template). Because the site's information is presented to the visitor before logging statistics, this is the best solution for if performance is very important to you.