Hi,

Custom field (ga:customVarNameXX, etc.) in views is ignored when XX >= 10.
This is due to the following code.

In google_analytics_reports.module

function google_analytics_reports_variable_to_custom_field($field) {
  return preg_replace('/\d/', 'XX', $field);
}

To fix

function google_analytics_reports_variable_to_custom_field($field) {
  return preg_replace('/\d+/', 'XX', $field);
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hayashi created an issue. See original summary.

Plazik’s picture

Status: Active » Needs review
FileSize
527 bytes

  • Plazik committed ef6f299 on 7.x-3.x authored by hayashi
    Issue #2655960 by Plazik, hayashi: CustomXX field in views does not work...
Plazik’s picture

Status: Needs review » Fixed

Thank you!
Commited.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.