Index: googleanalytics.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.admin.inc,v
retrieving revision 1.13.2.7
diff -u -r1.13.2.7 googleanalytics.admin.inc
--- googleanalytics.admin.inc	15 Aug 2010 16:54:48 -0000	1.13.2.7
+++ googleanalytics.admin.inc	19 Sep 2010 16:41:53 -0000
@@ -123,7 +123,7 @@
   $form['segmentation']['googleanalytics_segmentation'] = array(
     '#type' => 'select',
     '#title' => t('Add segmentation information to tracking code'),
-    '#description' => t('Segment users based on different properties, additionally to the basic IP address based tracking provided by Google Analytics.') . (!$profile_enabled ? ' '. t('<a href="@module_list">Enable the profile module</a> to be able to use profile fields for more granular tracking.', array('@module_list' => url('admin/build/modules'))) : '') .' '. t('Make sure you will not associate (or permit any third party to associate) any data gathered from Your Website(s) (or such third parties\' website(s)) with any personally identifying information from any source as part of Your use (or such third parties\' use) of the Google Analytics service. For more information see section 8.1 in the <a href="@ga_tos">Google Analytics terms of use</a>.', array('@ga_tos' => 'http://www.google.com/analytics/en-GB/tos.html')) .' '. t('You can select multiple values.'),
+    '#description' => t('Segment users based on different properties, additionally to the basic IP address based tracking provided by Google Analytics.') .' '. t('The properties can be defined for a combined length of <strong>64 bytes inclusive of the name and the value</strong>. This means that the length of the string used for the name %name and the length of the string used for the value must not exceed 64 bytes. Therefore the remaining length for segmentation values is @max_length bytes and longer strings are automatically shortened.', array('%name' => 'Segmentation', '@max_length' => (64 - strlen('Segmentation')))) . (!$profile_enabled ? ' '. t('<a href="@module_list">Enable the profile module</a> to be able to use profile fields for more granular tracking.', array('@module_list' => url('admin/build/modules'))) : '') .' '. t('Make sure you will not associate (or permit any third party to associate) any data gathered from Your Website(s) (or such third parties\' website(s)) with any personally identifying information from any source as part of Your use (or such third parties\' use) of the Google Analytics service. For more information see section 8.1 in the <a href="@ga_tos">Google Analytics terms of use</a>.', array('@ga_tos' => 'http://www.google.com/analytics/en-GB/tos.html')) .' '. t('You can select multiple values.'),
     '#default_value' => variable_get('googleanalytics_segmentation', array()),
     '#options' => $fields,
     '#size' => count($fields)>3 ? 10 : 3,
Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.36.2.12
diff -u -r1.36.2.12 googleanalytics.module
--- googleanalytics.module	14 Sep 2010 21:52:35 -0000	1.36.2.12
+++ googleanalytics.module	19 Sep 2010 16:41:54 -0000
@@ -98,7 +98,7 @@
       // Only show segmentation variable if there are specified fields.
       $segmentation = '';
       if (count($fields) > 0) {
-        $segmentation = '_gaq.push(["_setVar", ' . drupal_to_js(implode(':', $fields)) . ']);';
+        $segmentation = '_gaq.push(["_setCustomVar", 1, "Segmentation" ,' . substr(drupal_to_js(implode(':', $fields)), 0, (64 - strlen('Segmentation'))) .', 2]);';
       }
     }
 
