summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhass2018-11-04 12:34:02 (GMT)
committerhass2018-11-04 12:34:02 (GMT)
commitb6124cec05fbbcb95693dc7102101b0995d13815 (patch)
tree6455271ffb32c81170e866d867de96961839c44d
parent1961b0edd050610572129422fddddbb4bc8a3e27 (diff)
userId is a disallowed create field.
-rw-r--r--src/Form/GoogleAnalyticsAdminSettingsForm.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Form/GoogleAnalyticsAdminSettingsForm.php b/src/Form/GoogleAnalyticsAdminSettingsForm.php
index d35929b..f60bf06 100644
--- a/src/Form/GoogleAnalyticsAdminSettingsForm.php
+++ b/src/Form/GoogleAnalyticsAdminSettingsForm.php
@@ -897,14 +897,16 @@ class GoogleAnalyticsAdminSettingsForm extends ConfigFormBase {
'siteSpeedSampleRate',
'storage',
'useAmpClientId',
- 'userId',
];
if ($name == 'name') {
return t('Create only field name %name is a disallowed field name. Changing the <em>Tracker Name</em> is currently not supported.', ['%name' => $name]);
}
if ($name == 'allowLinker') {
- return t('Create only field name %name is a disallowed field name. Please select <em>Multiple top-level domains</em> under <em>What are you tracking</em> to enable cross domain tracking.', ['%name' => $name]);
+ return t('Create only field name %name is a disallowed field name. Please select <em>Multiple top-level domains</em> under <em>Tracking scope > Domains</em> to enable cross domain tracking.', ['%name' => $name]);
+ }
+ if ($name == 'userId') {
+ return t('Create only field name %name is a disallowed field name. Please enable <em>Track User ID</em> under <em>Tracking scope > Users</em>.', ['%name' => $name]);
}
if (!in_array($name, $create_only_fields)) {
return t('Create only field name %name is an unknown field name. Field names are case sensitive. Please see <a href=":url">create only fields</a> documentation for supported field names.', ['%name' => $name, ':url' => 'https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#create']);