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 All,
I'm trying to change siteSpeedSampleRate which needs to be set in the create method.
I can't find any clear documentation of how to add fields to the CUSTOM JAVASCRIPT CODE / Create only fields.
So I have tried all of the variations below but all result in the same exact error:
The Create only fields field contains invalid input.
ga('create', 'UA-XXXX-Y', {'siteSpeedSampleRate': 10});
{'siteSpeedSampleRate': 10}
{'siteSpeedSampleRate': 10};
'siteSpeedSampleRate': 10;
"siteSpeedSampleRate": 10
"siteSpeedSampleRate": 10;
etc...
Does anyone has any pointers on how to get this working?
Thanks
Comments
Comment #2
cotillardq CreditAttribution: cotillardq commentedWell once I read the documentation below the field I got it to work
Comment #3
cotillardq CreditAttribution: cotillardq commented