October 2017
Intermediate to advanced
370 pages
8h 57m
English
We can add arbitrary variables in the vars object, and we can then reference them in the request URLs. In the preceding example, we specified a property account as "account": "UA-XXXXX-Y", and in the URL, we can reference this property as ${account}.
We can also use the extraUrlParams object to add arbitrary parameters to the URL automatically. We can add the following to the configuration:
"extraUrlParams": { "a": "1", "b": "2"}
This would add a=1&b=2 to the end of the analytics request URL without having to add a=${a}&b=${b} to the URL manually.
Read now
Unlock full access