Login  Register

Re: Injecting Google Analytics tracker to the forum

Posted by Trustin Lee on Mar 13, 2009; 6:12am
URL: https://support.nabble.com/Injecting-Google-Analytics-tracker-to-the-forum-tp2471523p2471926.html

I'm getting 'Javascript not allowed' error with the following tracker code:

<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXX-X");
pageTracker._trackPageview();
} catch(err) {}</script>

And the following is the full description:

<h3 style="line-height: 0em; margin-top: 1.5em;">Welcome to the Netty forums!</h3>
<p>
Please choose an appropriate forum before posting a message.  If you are not sure, use the '<strong><a href="http://n2.nabble.com/Netty-User-Group-f685700.html">User Group</a></strong>'.
</p>
<h3 style="font-size: 125%; line-height: 0em;">Accessing via mailing lists</h3>
<p style="text-align: justify;">
Please visit the following pages to access the mailing lists instead of the forums.  All messages are bi-directional - the message sent to the mailing list is archived into the forum and the message posted to the forum is sent to the mailing list.</p>

<div style="text-align: center; margin-top: -0.5em;">
<a href="https://lists.jboss.org/mailman/listinfo/netty-announce">Announcements</a>
&middot;
<a href="https://lists.jboss.org/mailman/listinfo/netty-users">User Group</a>
&middot;
<a href="https://lists.jboss.org/mailman/listinfo/netty-dev">Developer Group</a>
&middot;
<a href="http://www.googlegroups.com/group/netty-ko">Korean User Group</a>
&middot;
<a href="https://lists.jboss.org/mailman/listinfo/netty-commits">Commit Logs</a>
&middot;
<a href="http://netty.markmail.org/search/">MarkMail Archive</a>
</div>

<p>
Alternatively, join us in the <a href="http://widget.mibbit.com/?settings=44de4a14ec60a760bc89a0ad38418ba9&server=irc.freenode.net&channel=%23netty">web chat room</a> hosted by mibbit and freenode. If you are using an IRC client, please join #netty at irc.freenode.net. (<a href="http://gleamynode.net/log/irc/irclogger_logs/netty">logs</a>)
</p>
<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXX-X");
pageTracker._trackPageview();
} catch(err) {}</script>

Please note that my tracker ID has been masked with 'X'.

Thanks!
what we call human nature in actuality is human habit
http://gleamynode.net/