can someone please tell me on what page do i have to put the google analytics code...thanks!!!!!


Open up head.tpl from your templates directory.
Scroll the the bottom of the code.
Find:
Just above that add a new line and enter this data:HTML Code:{/literal} </head>
Replace XX-XXXXX-X with your account number, which can be found by logging into google analytics > Click on Edit under the settings table for the URL you want to use > Click on Check Status near the top right of the page. The page you are taken to will have the same <script>.... info as I posted above, only with your user account number where the X's are. Just copy this code into your head.tpl file like I demonstrated above.HTML Code:<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "XX-XXXXX-X"; urchinTracker(); </script>
The Facebook Module for Pligg CMS!
Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!
I've put them in the header.tpl, it works fine.
My Dutch pligg site: MyRiverofLife.nl / Gepubliceerde berichten
Thanks for that, but I seem to have run into a problem here...
My footer.tpl file reads like this
Code:<br clear="all" /> <div class="footer"> Powered By <a href="http://www.pligg.com/">Pligg</a> | Legal: <a href="http://www.affero.org/oagpl.html">License</a> and <a href="https://sourceforge.net/project/showfiles.php?group_id=176676">Source</a> | Template By <a href="http://www.qkin.com/">Qkin</a> </div> {* Please do not edit the code below. *} {checkActionsTpl location="tpl_footer"} <div class="footer" style="display:none">Powered By <a href="http://www.pligg.com/">Pligg</a> Template By <a href="http://www.qkin.com/">Qkin</a></div> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> try { _uacct = "UA-6948073-1"; urchinTracker(); } catch(err) {}</script>
Ther error message I get is;
Do you know what I'm doing wrong here?Code:error: _uacct function does not exist (class.compiler.php, line 485) in /home/fourg124/public_html/digforleadership.com/class.template.php on line 923 Fatal error: TPL: [in silverbullet/footer.tpl line 13]: syntax
This is my code:
Replace UA-XXXXXX-X with your ID & try. ThanksCode:<script src="{$my_pligg_base}/js/xmlhttp.php" type="text/javascript"></script> <script src="{$my_pligg_base}/js/jspath.php" type="text/javascript"></script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-XXXXXX-X"); pageTracker._trackPageview(); </script>