| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | 
Module: Google AnalyticsAuthor: Alexander Hass <http://drupal.org/user/85918>Description===========Adds the Google Analytics tracking system to your website.Requirements============* Google Analytics user accountInstallation============Copy the 'googleanalytics' module directory in to your Drupalsites/all/modules directory as usual.Usage=====In the settings page enter your Google Analytics account number.All pages will now have the required JavaScript added to theHTML footer can confirm this by viewing the page source fromyour browser.New approach to page tracking in 5.x-1.5 and 6.x-1.1====================================================With 5.x-1.5 and 6.x-1.1 there are new settings on the settings page atadmin/config/system/googleanalytics. The "Page specific tracking" area nowcomes with an interface that copies Drupal's block visibility settings.The default is set to "Add to every page except the listed pages". Bydefault the following pages are listed for exclusion:adminadmin/*batchnode/add*node/*/*user/*/*These defaults are changeable by the website administrator or any otheruser with 'administer google analytics' permission.Like the blocks visibility settings in Drupal core, there is now achoice for "Add if the following PHP code returns TRUE." Sample PHP snippetsthat can be used in this textarea can be found on the handbook page"Overview-approach to block visibility" at http://drupal.org/node/64135.Custom dimensions and metrics=============================One example for custom dimensions tracking is the "User roles" tracking.1. In the Google Analytics Management Interface you need to setup Dimension #1   with name e.g. "User roles". This step is required. Do not miss it, please.2. Enter the below configuration data into the custom dimensions settings form   under admin/config/system/googleanalytics. You can also choose another index,   but keep it always in sync with the index used in step #1.   Index: 1   Value: [current-user:role-names]More details about custom dimensions and metrics can be found in the Google APIdocumentation at https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-metsAdvanced Settings=================You can include additional JavaScript snippets in the custom javascriptcode textarea. These can be found on the official Google Analytics pagesand a few examples at http://drupal.org/node/248699. Support is notprovided for any customisations you include.To speed up page loading you may also cache the Google Analytics "analytics.js"file locally.
 |