Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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);
}
Comment | File | Size | Author |
---|---|---|---|
#2 | google_analytics_reports-customxx_field_in_views-2655960-2.patch | 527 bytes | Plazik |
Comments
Comment #2
Plazik CreditAttribution: Plazik as a volunteer commentedComment #4
Plazik CreditAttribution: Plazik as a volunteer commentedThank you!
Commited.