[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/google_analytics/ -> README.txt (source)

   1  
   2  Module: Google Analytics
   3  Author: Alexander Hass <http://drupal.org/user/85918>
   4  
   5  
   6  Description
   7  ===========
   8  Adds the Google Analytics tracking system to your website.
   9  
  10  Requirements
  11  ============
  12  
  13  * Google Analytics user account
  14  
  15  
  16  Installation
  17  ============
  18  * Copy the 'googleanalytics' module directory in to your Drupal
  19  sites/all/modules directory as usual.
  20  
  21  
  22  Usage
  23  =====
  24  In the settings page enter your Google Analytics account number.
  25  
  26  All pages will now have the required JavaScript added to the
  27  HTML footer can confirm this by viewing the page source from
  28  your browser.
  29  
  30  New approach to page tracking in 5.x-1.5 and 6.x-1.1
  31  ====================================================
  32  With 5.x-1.5 and 6.x-1.1 there are new settings on the settings page at
  33  admin/settings/googleanalytics. The "Page specific tracking" area now
  34  comes with an interface that copies Drupal's block visibility settings.
  35  
  36  The default is set to "Add to every page except the listed pages". By
  37  default the following pages are listed for exclusion:
  38  
  39  admin
  40  admin/*
  41  batch
  42  node/add*
  43  node/*/*
  44  user/*/*
  45  
  46  These defaults are changeable by the website administrator or any other
  47  user with 'administer google analytics' permission.
  48  
  49  Like the blocks visibility settings in Drupal core, there is now a
  50  choice for "Add if the following PHP code returns TRUE." Sample PHP snippets
  51  that can be used in this textarea can be found on the handbook page
  52  "Overview-approach to block visibility" at http://drupal.org/node/64135.
  53  
  54  Custom variables
  55  =================
  56  One example for custom variables tracking is the "User roles" tracking. Enter
  57  the below configuration data into the custom variables settings form under
  58  admin/settings/googleanalytics.
  59  
  60  Slot: 1
  61  Name: User roles
  62  Value: [user-role-names]
  63  Scope: Visitor
  64  
  65  More details about Custom variables can be found in the Google API documentation at
  66  http://code.google.com/intl/en/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
  67  
  68  Advanced Settings
  69  =================
  70  You can include additional JavaScript snippets in the custom javascript
  71  code textarea. These can be found on the official Google Analytics pages
  72  and a few examples at http://drupal.org/node/248699. Support is not
  73  provided for any customisations you include.
  74  
  75  To speed up page loading you may also cache the Analytics ga.js
  76  file locally. You need to make sure the site file system is in public
  77  download mode.


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7