After inserting Google Analytics code in footer.tpl, the footer disapeared
Posted by netfuchs
After inserting Google Analytics code in footer.tpl, the footer disapeared December 16, 2013 03:57AM |
Registered: 11 years ago Posts: 2 |
I inserted the following code in the file footer.tpl of my template.
After that, the whole footer disapeared.
Where ist the mistake?
Thanks for your help.
After that, the whole footer disapeared.
Where ist the mistake?
Thanks for your help.
Language: HTML<!-- BEGIN TEMPLATE footer.tpl --> <div id="footer-plug"> This <a href="http://www.phorum.org/">forum</a> is powered by <a href="http://www.phorum.org/">Phorum</a>. </div> </div> <!-- end of div id="phorum" --> <script> (function(i,s,o,g,r,a,m){i[';GoogleAnalyticsObject';]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,';script';,';//www.google-analytics.com/analytics.js';,';ga';); ga(';create';, ';XX-XXXXXXXX-X';, ';mydomain.tld';); ga(';send';, ';pageview';); </script> </body> </html> <!-- END TEMPLATE footer.tpl -->
Re: After inserting Google Analytics code in footer.tpl, the footer disapeared March 29, 2014 07:36AM |
Registered: 11 years ago Posts: 2 |
Re: After inserting Google Analytics code in footer.tpl, the footer disapeared March 29, 2014 07:45AM |
Registered: 11 years ago Posts: 2 |
The "{" was the problem. (it was so obviously...)
You need to put your code this way:
You need to put your code this way:
Language: Javascript<script> (function(i,s,o,g,r,a,m) { i[';GoogleAnalyticsObject';]=r;i[r]=i[r]||function() { (i[r].q=i[r].q||[]).push(arguments) } ,i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) } )(window,document,';script';,';//www.google-analytics.com/analytics.js';,';ga';); ga(';create';, ';XX-XXXXXXXX-X';, ';mydomain.tld';); ga(';send';, ';pageview';); </script>
Re: After inserting Google Analytics code in footer.tpl, the footer disapeared July 31, 2014 05:42AM |
Registered: 11 years ago Posts: 2 |
Re: After inserting Google Analytics code in footer.tpl, the footer disapeared June 19, 2015 03:02PM |
Registered: 14 years ago Posts: 71 |
Sorry, only registered users may post in this forum.