Changes between Version 3 and Version 4 of GoogleAnalyticsPlugin


Ignore:
Timestamp:
Jun 8, 2009 5:41:24 PM (5 years ago)
Author:
s0undt3ch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GoogleAnalyticsPlugin

    v3 v4  
    11= Trac Google Analytics Plugin = 
    2 '''This is an external plugin, any questions and/or bugs should be submitted to:''' 
    3   '''http://devnull.ufsoft.org''' 
    4  
    5 ---- 
    6  
    7 {{{ 
    8 #!rst 
    9 This plugin will enable your trac environment to be logged by Google Analytics. 
    10  
    11 It ads the necessary javascript code to log your environment, plus, it also 
    12 logs the downloads of regular filenames which end with a specific extension; 
    13 these extensions are defined by you; and also external links. 
    14  
    15 To enable the plugin add to the ``[components]`` section in your ``trac.ini``: 
    16  
    17 .. code-block:: ini 
    18  
    19   [components] 
    20   tracgoogleanalytics.* = enabled 
    21  
    22  
    23 Configuration 
    24 ------------- 
    25  
    26 The necessary configuration is: 
    27  * **UID**: Google Analytics' UID. The UID is needed for Google Analytics to 
    28    log your website stats. Your UID can be found by looking in the JavaScript 
    29    Google Analytics gives you to put on your page. Look for your UID in 
    30    between the javascript:: 
    31  
    32      var pageTracker = _gat._getTracker("UA-111111-11"); 
    33  
    34    In this example you would put **UA-11111-1** in the UID box. 
    35  
    36 There are other, more advanced configuration options: 
    37  * **admin_logging**: Disabling this option will prevent all logged in 
    38    ``TRAC_ADMIN``'s from showing up on your Google Analytics reports. 
    39  * **outbound_link_tracking**: Disabling this option will turn off the 
    40    tracking of outbound links. 
    41    It's recommended not to disable this option unless you're a privacy 
    42    advocate (now why would you be using Google Analytics in the first place?) 
    43    or it's causing some kind of weird issue. 
    44  * **google_external_path**: This will be the path shown on Google Analytics 
    45    regarding external links. Consider the following link:: 
    46  
    47      <a href="http://trac.edgewall.org/">Trac</a> 
    48  
    49    The above link will be shown as:: 
    50  
    51       /external/trac.edgewall.org/ 
    52  
    53    This way you will be able to track outgoing links. Outbound link tracking 
    54    must be enabled for external links to be tracked. 
    55  * **extensions**: Enter any extensions of files you would like to be tracked 
    56    as a download. For example to track all MP3s and PDFs enter **mp3,pdf**. 
    57    Outbound link tracking must be enabled for downloads to be tracked. 
    58  * **tracking_domain_name**: If you're tracking multiple subdomains with the 
    59    same Google Analytics profile, like what's talked about here_, enter your 
    60    main domain here. For more info, please visit the previous link. 
    61  
    62  
    63 .. _here: https://www.google.com/support/googleanalytics/bin/answer.py?answer=55524 
    64 }}} 
     2 Please see TracGoogleAnalyticsPlugin.