UNPKG

410 BJavaScriptView Raw
1import customTask from "./customTask"
2
3/**
4 * Function takes a number of the dimension that will hold the Client ID.
5 * This will be added to every call to Google Analytics.
6 *
7 * @param clientIdDimension
8 */
9const clientIdSetter = function (clientIdDimension) {
10 customTask(function (model) {
11 model.set("dimension" + clientIdDimension, model.get("clientId"))
12 })
13}
14
15export default clientIdSetter
\No newline at end of file