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

Commit a280b64

Browse files
committed
6.0.0
1 parent ead3e84 commit a280b64

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

README.md

+49-49
Original file line numberDiff line numberDiff line change
@@ -197,23 +197,23 @@ GoogleTagManager.registerFunctionCallTagHandler(
197197
- [Examples](#examples-28)
198198
- [CustomDimensionsByField](#customdimensionsbyfield)
199199
- [Examples](#examples-29)
200-
- [CustomDimensionsByIndex](#customdimensionsbyindex)
200+
- [CustomMetrics](#custommetrics)
201201
- [Examples](#examples-30)
202-
- [CustomDimensionsFieldIndexMap](#customdimensionsfieldindexmap)
202+
- [CustomDimensionsByIndex](#customdimensionsbyindex)
203203
- [Examples](#examples-31)
204-
- [CustomMetrics](#custommetrics)
204+
- [CustomDimensionsFieldIndexMap](#customdimensionsfieldindexmap)
205205
- [Examples](#examples-32)
206206
- [DataLayerEvent](#datalayerevent)
207207
- [Parameters](#parameters-28)
208208
- [Examples](#examples-33)
209209
- [ProductActionEnum](#productactionenum)
210-
- [Product](#product)
210+
- [ProductAction](#productaction)
211211
- [Parameters](#parameters-29)
212212
- [Examples](#examples-34)
213-
- [ProductAction](#productaction)
213+
- [Transaction](#transaction)
214214
- [Parameters](#parameters-30)
215215
- [Examples](#examples-35)
216-
- [Transaction](#transaction)
216+
- [Product](#product)
217217
- [Parameters](#parameters-31)
218218
- [Examples](#examples-36)
219219

@@ -812,6 +812,17 @@ const customDimensions = { customerType: "Premium", appType: "Beta", credit: 120
812812
tracker.trackScreenView("Home", { customDimensions });
813813
```
814814

815+
### CustomMetrics
816+
817+
A dictionary with custom metric values and their index keys.
818+
819+
#### Examples
820+
821+
```javascript
822+
const customMetrics = { 1: 2389, 4: 15000 }
823+
tracker.trackScreenView("Home", { customMetrics });
824+
```
825+
815826
### CustomDimensionsByIndex
816827

817828
- **See: CustomDimensionsFieldIndexMap**
@@ -847,17 +858,6 @@ tracker.trackScreenView("Home", { customDimensions: { customerType: "Premium" }
847858
tracker.trackScreenView("Home", { customDimensions: { 1: "Premium" } });
848859
```
849860

850-
### CustomMetrics
851-
852-
A dictionary with custom metric values and their index keys.
853-
854-
#### Examples
855-
856-
```javascript
857-
const customMetrics = { 1: 2389, 4: 15000 }
858-
tracker.trackScreenView("Home", { customMetrics });
859-
```
860-
861861
### DataLayerEvent
862862

863863
The Google Tag Manager DataLayerEvent dictionary.
@@ -893,38 +893,6 @@ Used by `ProductAction` when describing the type of product action. The possible
893893
- Purchase = 7,
894894
- Refund = 8
895895

896-
### Product
897-
898-
Enhanced Ecommerce Product
899-
900-
Used by `HitPayload` when populating product actions or impressions
901-
902-
#### Parameters
903-
904-
- `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
905-
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
906-
- `category` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
907-
- `brand` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
908-
- `variant` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
909-
- `price` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
910-
- `couponCode` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
911-
- `quantity` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
912-
913-
#### Examples
914-
915-
```javascript
916-
const product = {
917-
id: "P12345",
918-
name: "Android Warhol T-Shirt",
919-
category: "Apparel/T-Shirts",
920-
brand: "Google",
921-
variant: "Black",
922-
price: 29.2,
923-
quantity: 1,
924-
couponCode: "APPARELSALE"
925-
};
926-
```
927-
928896
### ProductAction
929897

930898
Enhanced Ecommerce Product Action
@@ -982,3 +950,35 @@ const transaction = {
982950
couponCode: "SUMMER2013"
983951
};
984952
```
953+
954+
### Product
955+
956+
Enhanced Ecommerce Product
957+
958+
Used by `HitPayload` when populating product actions or impressions
959+
960+
#### Parameters
961+
962+
- `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
963+
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
964+
- `category` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
965+
- `brand` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
966+
- `variant` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
967+
- `price` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
968+
- `couponCode` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
969+
- `quantity` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
970+
971+
#### Examples
972+
973+
```javascript
974+
const product = {
975+
id: "P12345",
976+
name: "Android Warhol T-Shirt",
977+
category: "Apparel/T-Shirts",
978+
brand: "Google",
979+
variant: "Black",
980+
price: 29.2,
981+
quantity: 1,
982+
couponCode: "APPARELSALE"
983+
};
984+
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-google-analytics-bridge",
3-
"version": "6.0.0-rc11",
3+
"version": "6.0.0",
44
"description": "React Native bridge for using native Google Analytics libraries on iOS and Android",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)