@@ -197,23 +197,23 @@ GoogleTagManager.registerFunctionCallTagHandler(
197
197
- [ Examples] ( #examples-28 )
198
198
- [ CustomDimensionsByField] ( #customdimensionsbyfield )
199
199
- [ Examples] ( #examples-29 )
200
- - [ CustomDimensionsByIndex ] ( #customdimensionsbyindex )
200
+ - [ CustomMetrics ] ( #custommetrics )
201
201
- [ Examples] ( #examples-30 )
202
- - [ CustomDimensionsFieldIndexMap ] ( #customdimensionsfieldindexmap )
202
+ - [ CustomDimensionsByIndex ] ( #customdimensionsbyindex )
203
203
- [ Examples] ( #examples-31 )
204
- - [ CustomMetrics ] ( #custommetrics )
204
+ - [ CustomDimensionsFieldIndexMap ] ( #customdimensionsfieldindexmap )
205
205
- [ Examples] ( #examples-32 )
206
206
- [ DataLayerEvent] ( #datalayerevent )
207
207
- [ Parameters] ( #parameters-28 )
208
208
- [ Examples] ( #examples-33 )
209
209
- [ ProductActionEnum] ( #productactionenum )
210
- - [ Product ] ( #product )
210
+ - [ ProductAction ] ( #productaction )
211
211
- [ Parameters] ( #parameters-29 )
212
212
- [ Examples] ( #examples-34 )
213
- - [ ProductAction ] ( #productaction )
213
+ - [ Transaction ] ( #transaction )
214
214
- [ Parameters] ( #parameters-30 )
215
215
- [ Examples] ( #examples-35 )
216
- - [ Transaction ] ( #transaction )
216
+ - [ Product ] ( #product )
217
217
- [ Parameters] ( #parameters-31 )
218
218
- [ Examples] ( #examples-36 )
219
219
@@ -812,6 +812,17 @@ const customDimensions = { customerType: "Premium", appType: "Beta", credit: 120
812
812
tracker .trackScreenView (" Home" , { customDimensions });
813
813
```
814
814
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
+
815
826
### CustomDimensionsByIndex
816
827
817
828
- ** See: CustomDimensionsFieldIndexMap**
@@ -847,17 +858,6 @@ tracker.trackScreenView("Home", { customDimensions: { customerType: "Premium" }
847
858
tracker .trackScreenView (" Home" , { customDimensions: { 1 : " Premium" } });
848
859
```
849
860
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
-
861
861
### DataLayerEvent
862
862
863
863
The Google Tag Manager DataLayerEvent dictionary.
@@ -893,38 +893,6 @@ Used by `ProductAction` when describing the type of product action. The possible
893
893
- Purchase = 7,
894
894
- Refund = 8
895
895
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
-
928
896
### ProductAction
929
897
930
898
Enhanced Ecommerce Product Action
@@ -982,3 +950,35 @@ const transaction = {
982
950
couponCode: " SUMMER2013"
983
951
};
984
952
```
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
+ ```
0 commit comments