Menu

#29 Google Analytics Integration

open-wont-fix
nobody
None
1
2014-08-24
2008-01-13
No

Provide the ability to send data to Google Analytics.

http://www.google.com/analytics

Add the following code just before the </body> tag:
<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-XXXXXXX");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Where UA-XXXXXXX is the site specific account.

Allow the admin to enter an account to use.

Discussion

  • bzrudi

    bzrudi - 2008-02-07

    Logged In: YES
    user_id=184593
    Originator: NO

    Hi,

    moved to "Patch" Tracker as one may like to use it (maybe better to relocate it to wiki). We won't add default support for it, sorry.

    cheers bzrudi

     
  • bzrudi

    bzrudi - 2008-02-07
    • labels: 550334 -->
    • milestone: 246286 -->
    • priority: 5 --> 1
    • status: open --> open-wont-fix
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.