I've had a request from a client to add allowLinker and useAmpClientId to the google analytics create method. I think it should be added via the 'Create only fields' section in the module admin form. I've added the fields there but these fields appear to be disallowed the following error is displayed - "Create only field name allowLinker is a disallowed field name. " I have found this error message within the code, so I assume this is specifically disallowed by the module authors.
There is a patch available for the Drupal 7 version of the module. Is there going to be a similar update to the Drupal 8 version? If so is there a schedule of when this is going to be released?
Comments
Comment #2
hass CreditAttribution: hass commentedTrue/false is allowed.
AllowLinker is set via domain settings automatically.
Comment #3
hass CreditAttribution: hass commentedhttps://support.google.com/analytics/answer/7486764?hl=en
Comment #8
hass CreditAttribution: hass commentedComment #10
oliverpolden CreditAttribution: oliverpolden commentedIs this correct? If I add useAmpClientId to the "Create only fields" then I get the following output:
ga("create", "UA-XXXXX-Y", {"cookieDomain":"auto","useAmpClientId":true});
i.e.
useAmpClientId is added as an element to the third parameter, not as a fourth.