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'.

CommentFileSizeAuthor
#1 google-analytics-custom-field.patch572 bytesdeepakrmklm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deepakrmklm’s picture

I 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.

hass’s picture

Assigned: deepakrmklm » Unassigned
Priority: Critical » Normal
Status: Active » Fixed
Issue tags: -google analytics, -allowLinker
hass’s picture

deepakrmklm’s picture

Dear Hass,

In the latest version also this patch has not been applied and why the parent issue is maked as closed.

Thanks.

hass’s picture

It has been integrated in 2.1 and this is the latest version.

deepakrmklm’s picture

Thanks.

Status: Fixed » Closed (fixed)

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