1 | import 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 | */
|
9 | const clientIdSetter = function (clientIdDimension) {
|
10 | customTask(function (model) {
|
11 | model.set("dimension" + clientIdDimension, model.get("clientId"))
|
12 | })
|
13 | }
|
14 |
|
15 | export default clientIdSetter |
\ | No newline at end of file |