Note that your code is immediate followed by an end-if {/if}. The start to this conditional is at:
This means your Google Analytics code will only display when there is a System Notification. To work all of the time, your addition would need to be outside of this smarty {if} ... {/if}.
thanks for the reply,
I put the Google Analytics GA code in the common/footer.tpl ,
but the statistitics are not coming in google analytics.
The code for my footer.tpl is as follows:
{**
templates/common/footer.tpl
Copyright (c) 2005-2012 Alec Smecher and John Willinsky
Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
Inserting it in the header vs. the footer should not make a difference technically. You will need the Google Analytics code within <script> tags. I can’t see if you have those in your example. The may be missing, or they may be stripped out by the forum.
If you post your footer.tpl as “pre” or “code” text (use the </> button in the editor, or surrounded the code by triple-backticks), it will preserve the full content and we can get a better look at it.