@@ -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
812812tracker .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" }
847858tracker .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
863863The 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
930898Enhanced 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+ ```
0 commit comments