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.
While adding custom Javascript code to add one more field in google analytics adavanced settings showing an error 'Field name allowLinker is an unknown field name. Please see create only fields documentation for supported field names'.
Comment | File | Size | Author |
---|---|---|---|
#1 | google-analytics-custom-field.patch | 572 bytes | deepakrmklm |
Comments
Comment #1
deepakrmklm CreditAttribution: deepakrmklm at Zyxware Technologies commentedI have found that in the googleanalytics.admin.inc file, an array has been hardcoded (_googleanalytics_validate_create_field_name()[line number: 734]) based on the Google documentation which misses the value 'allowLinker', which generates the error.
This fix solved my issue.
Comment #2
hass CreditAttribution: hass commentedSee http://cgit.drupalcode.org/google_analytics/tree/googleanalytics.admin.i... and always use the latest releases.
Comment #3
hass CreditAttribution: hass commentedComment #4
deepakrmklm CreditAttribution: deepakrmklm at Zyxware Technologies commentedDear Hass,
In the latest version also this patch has not been applied and why the parent issue is maked as closed.
Thanks.
Comment #5
hass CreditAttribution: hass commentedIt has been integrated in 2.1 and this is the latest version.
Comment #6
deepakrmklm CreditAttribution: deepakrmklm at Zyxware Technologies commentedThanks.