Changeset 3996 for Serveur


Ignore:
Timestamp:
09/21/10 14:29:44 (9 years ago)
Author:
kent1
Message:

Simplifions la configuration au minimum

Location:
Serveur/trac/TracPiwik/tracext/piwik/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Serveur/trac/TracPiwik/tracext/piwik/templates/piwik_admin.html

    r3995 r3996  
    1414      <fieldset>
    1515        <legend>Basic Options</legend>
    16         <label for="uid">UID:</label>
    17         <input type="text" name="uid" value="${piwik.uid.value.upper()}"/>
    18         <p class="help">Enter your Piwik's username in this box.<br/>
    19           The Username is needed for Piwik to log your website stats.<br/>
    20         </p><br/>
    21 
    22         <label for="admin_logging">Admin Logging:</label>
    23         <input type="checkbox" name="admin_logging" value="yes" checked="${
    24           ga.admin_logging.value and 'checked' or None}"/>
    25         <p class="help">Disabling this option will prevent all logged in
    26           <tt><strong>TRAC_ADMIN</strong></tt>'s from showing up on your Google
    27           Analytics reports.</p><br/>
    28 
    29         <label for="authenticated_logging">Authenticated Users Logging:</label>
    30         <input type="checkbox" name="authenticated_logging" value="yes" checked="${
    31           ga.authenticated_logging.value and 'checked' or None}"/>
    32         <p class="help">Disabling this option will prevent all
    33         <strong>authenticated</strong> users from showing up on your Google
    34         Analytics reports.</p><br/>
    35                
    3616                <label for="tracking_server">Tracking server :</label>
    3717                <input type="text" name="tracking_server" value="${piwik.tracking_server.value}" />
     
    3919          without the "http://" or "https://" and without trailing slash<br/>
    4020        </p>
    41       </fieldset>
    42 
    43       <fieldset>
    44         <legend>Advanced Options</legend>
    45         <label for="outbound_link_tracking">Outbound Link Tracking:</label>
    46         <input type="checkbox" value="yes" name="outbound_link_tracking" checked="${
    47           ga.outbound_link_tracking.value and 'checked' or None}"/>
    48         <p class="help">Disabling this option will turn off the tracking of
    49           outbound links.<br/>It's recommended not to disable this option unless
    50           you're a privacy advocate (now why would you be using Google Analytics
    51           in the first place?) or it's causing some kind of weird issue.</p><br/>
    52 
    53         <label for="google_external_path">Google External Path:</label>
    54         <input type="text" name="google_external_path"
    55           value="${ga.google_external_path.value}"/>
    56         <p class="help">This will be the path shown on Google Analytics
    57           regarding external links. Consider the following link:<br/><strong><tt>
    58           &lt;a href="http://trac.edgewall.org/">Trac&lt;/a&gt;</tt></strong><br/>
    59           The above link will be shown as <strong><tt>${
    60           ga.google_external_path.value}trac.edgewall.org/</tt></strong>.<br/>
    61           This way you will be able to track outgoing links.<br/>
    62           <em>Outbound link tracking must be enabled for external links to be
    63           tracked.</em></p><br/>
    64 
    65         <label for="extensions">Download Extensions To Trac:</label>
    66         <input type="text" name="extensions" size="50" value="${
    67           ga.extensions.value }"/>
    68         <p class="help">Enter any extensions of files you would like to be
    69           tracked as a download.<br/>For example to track all MP3s and PDFs enter
    70           <strong>mp3,pdf</strong>.<br/><em>Outbound link tracking must be enabled
    71           for downloads to be tracked.</em></p><br/>
    72 
    73         <label for="tracking_domain_name">Tracking Domain Name:</label>
    74         <input type="text" name="tracking_domain_name" size="50" value="${
    75           ga.tracking_domain_name.value }"/>
    76         <p class="help">If you're tracking multiple subdomains with the same
    77         Google Analytics profile, like what's talked about
    78         <a href="https://www.google.com/support/googleanalytics/bin/answer.py?answer=55524">here</a>,
    79         enter your main domain here. For more info, please visit the previous
    80         link.</p><br/>
     21               
     22        <label for="tracking_site">Tracked Site:</label>
     23        <input type="text" name="tracking_site" value="${piwik.tracking_site}"/>
     24        <p class="help">Enter your Piwik's tracked site ID in this box.<br/>
     25          The tracked site ID should be a digit number.<br/>
     26        </p><br/>
    8127      </fieldset>
    8228      <div class="buttons">
  • Serveur/trac/TracPiwik/tracext/piwik/templates/piwik_analytics.html

    r3995 r3996  
    1111try {
    1212        jQuery(document).ready( function() {
    13                 var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", ${ opt.tracking_site });
     13                var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", "${ opt.tracking_site }");
    1414                piwikTracker.trackPageView();
    1515                piwikTracker.enableLinkTracking();
     
    1818</script><noscript><p><img src="http://${ opt.tracking_server }/piwik.php?idsite=${ opt.tracking_site }" style="border:0" alt="" /></p></noscript>
    1919<!-- End Piwik Tag -->
    20   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    21 </script>
    2220</html>
Note: See TracChangeset for help on using the changeset viewer.