Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 3dce3a3

Browse files
committed
Update README with new functionality
1 parent b009a27 commit 3dce3a3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,21 @@ Tracks an event with one or more customDimensionValues. See the [Google Analytic
287287
```javascript
288288
tracker.trackEventWithCustomDimensionValues('testcategory', 'testaction', {label: 'v1.0.3', value: 22}, {'1':'premium', '5':'foo'});
289289
```
290+
### trackEventWithCustomDimensionAndMetricValues(category, action, optionalValues, dimensionIndexValueDict)
291+
292+
* **category (required):** String, category of event
293+
* **action (required):** String, name of action
294+
* **optionalValues:** Object
295+
* **label:** String
296+
* **value:** Number
297+
* **dimensionIndexValueDict (required):** Dict of dimension index / values.
298+
* **metricIndexValueDict (required):** Dict of metric index / values.
299+
300+
Tracks an event with one or more customDimensionValues and one or more customMetricValues. See the [Google Analytics](https://developers.google.com/analytics/devguides/collection/ios/v3/customdimsmets) docs for more info.
301+
302+
```javascript
303+
tracker.trackEventWithCustomDimensionAndMetricValues('testcategory', 'testaction', {label: 'v1.0.3', value: 22}, {'1':'premium', '5':'foo'}, , {'1': 3, '5': 4});
304+
```
290305

291306
### setUser(userId)
292307

@@ -298,6 +313,26 @@ See the [Google Analytics](https://developers.google.com/analytics/devguides/col
298313
tracker.setUser('12345678');
299314
```
300315

316+
### setClient(clientId)
317+
318+
* **clientId (required):** String, an **anonymous** identifier that complies with Google Analytic's client ID policy
319+
320+
See the [Google Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) for more info.
321+
322+
```javascript
323+
tracker.setClient('35009a79-1a05-49d7-b876-2b884d0f825b');
324+
```
325+
326+
### createNewSession(screenName)
327+
328+
* **screenName (required):** String, the current screen which the session started on
329+
330+
See the [Google Analytics](https://developers.google.com/analytics/devguides/collection/ios/v3/sessions#manual) for more info.
331+
332+
```javascript
333+
tracker.createNewSession('HomeScreen');
334+
```
335+
301336
### allowIDFA(enabled)
302337

303338
* **enabled (required):** Boolean, true to allow IDFA collection, defaults to `true`.

0 commit comments

Comments
 (0)