Skip to content

Commit

Permalink
TM-12848 Tag Manager for release 18.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Barcz committed Sep 5, 2023
1 parent 719576e commit 7e41500
Show file tree
Hide file tree
Showing 23 changed files with 451 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"id": "118151e9-e0f8-4aeb-adb6-c1c659e5472f",
"type": "changelog",
"attributes": {
"version_id": "1ff0fd82-beac-4798-bede-13c6e7433fae",
"created_at": "2020-04-10T09:39:32+00:00",
"author": "john@doe.com",
"change_type": "edit",
Expand Down Expand Up @@ -91,7 +90,6 @@
"id": "a351a4b1-6568-4309-bbc2-29e1f317efa1",
"type": "changelog",
"attributes": {
"version_id": "1ff0fd82-beac-4798-bede-13c6e7433fae",
"created_at": "2020-03-31T08:47:01+00:00",
"author": "john@doe.com",
"change_type": "delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
"title": "Add",
"description": "Add tag",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -60,9 +57,6 @@
"title": "Edit",
"description": "Edit tag",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -94,9 +88,6 @@
"title": "Delete",
"description": "Delete tag",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -134,9 +125,6 @@
"title": "Add",
"description": "Add trigger",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -168,9 +156,6 @@
"title": "Edit",
"description": "Edit trigger",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -202,9 +187,6 @@
"title": "Delete",
"description": "Delete trigger",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -242,9 +224,6 @@
"title": "Add",
"description": "Add variable",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -276,9 +255,6 @@
"title": "Edit",
"description": "Edit variable",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -310,9 +286,6 @@
"title": "Delete",
"description": "Delete variable",
"properties": {
"version_id": {
"$ref": "../../../versions/schema/version_types.json#/definitions/version_identifier"
},
"author": {
"$ref": "../changelog_attributes.json#/definitions/changelog_author_nullable_attribute"
},
Expand Down Expand Up @@ -343,7 +316,6 @@
}
],
"required": [
"version_id",
"author",
"change_type",
"resource_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"$ref": "../../tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/ecommerce/ecommerce_add_to_cart_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"$ref": "../../tag_templates/ecommerce/ecommerce_order_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/ecommerce/ecommerce_order_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/ecommerce/ecommerce_order_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"$ref": "../../tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/ecommerce/ecommerce_product_detail_view_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"$ref": "../../tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/ecommerce/ecommerce_remove_from_cart_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"$ref": "../../tag_templates/piwik_event_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/piwik_event_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/piwik_event_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"$ref": "../../tag_templates/piwik_goal_conversion_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/piwik_goal_conversion_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/piwik_goal_conversion_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"$ref": "../../tag_templates/piwik_virtual_page_view_attributes.json#/definitions/template"
},
"template_options": {
"$ref": "../../tag_templates/piwik_virtual_page_view_attributes.json#/definitions/template_options"
"$ref": "../../tag_templates/piwik_virtual_page_view_attributes_get.json#/definitions/template_options"
},
"created_at": {
"$ref": "../../../../common/schema/common_types.json#/definitions/datetime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
},
"products_array": {
"$ref": "ecommerce_common_attributes.json#/definitions/products_array"
},
"product_dimensions": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_dimensions"
},
"custom_dimensions": {
"$ref": "../piwik_base_attributes.json#/definitions/custom_dimensions"
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"definitions": {
"template": {
"$ref": "../../tag_attributes.json#/definitions/template",
"enum": [
"ecommerce_add_to_cart"
]
},
"template_options": {
"type": "object",
"properties": {
"product_mapping": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_mapping",
"description": "Product mapping"
},
"category_mapping_type": {
"$ref": "ecommerce_common_attributes.json#/definitions/category_mapping_type"
},
"category_mapping": {
"$ref": "ecommerce_common_attributes.json#/definitions/category_mapping"
},
"products_array": {
"$ref": "ecommerce_common_attributes.json#/definitions/products_array"
},
"product_dimensions": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_dimensions"
},
"custom_dimensions": {
"$ref": "../piwik_base_attributes.json#/definitions/custom_dimensions"
}
},
"additionalProperties": false,
"required": [
"product_mapping",
"category_mapping_type",
"products_array",
"product_dimensions",
"custom_dimensions"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
{
"definitions": {
"product_dimensions_item": {
"description": "Product dimension",
"type": "object",
"properties": {
"id": {
"description": "Product dimension number",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"value": {
"description": "Product dimension value",
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "string",
"minLength": 1,
"maxLength": 255
}
]
}
},
"additionalProperties": false,
"required": [
"id",
"value"
]
},
"product_dimensions": {
"description": "Product dimensions",
"type": "array",
"items": {
"$ref": "#/definitions/product_dimensions_item"
},
"minItems": 0,
"maxItems": 20
},
"products_array": {
"type": "string",
"description": "Object key with products array"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
},
"order": {
"$ref": "ecommerce_order_attributes.json#/definitions/template_options_order"
},
"product_dimensions": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_dimensions"
},
"custom_dimensions": {
"$ref": "../piwik_base_attributes.json#/definitions/custom_dimensions"
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"definitions": {
"template": {
"$ref": "../../tag_attributes.json#/definitions/template",
"enum": [
"ecommerce_order"
]
},
"template_options_order": {
"type": "object",
"description": "Order details",
"properties": {
"order_id": {
"type": "string",
"description": "Object key with order ID"
},
"grand_total": {
"type": "string",
"description": "Object key with grand total"
},
"subtotal": {
"type": "string",
"description": "Object key with subtotal"
},
"tax": {
"type": "string",
"description": "Object key with tax"
},
"shipping": {
"type": "string",
"description": "Object key with shipping"
},
"discount": {
"type": "string",
"description": "Object key with discount"
}
},
"additionalProperties": false,
"required": [
"order_id",
"grand_total"
]
},
"template_options": {
"type": "object",
"properties": {
"product_mapping": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_mapping",
"description": "Product mapping"
},
"category_mapping_type": {
"$ref": "ecommerce_common_attributes.json#/definitions/category_mapping_type"
},
"category_mapping": {
"$ref": "ecommerce_common_attributes.json#/definitions/category_mapping"
},
"products_array": {
"$ref": "ecommerce_common_attributes.json#/definitions/products_array"
},
"order": {
"$ref": "ecommerce_order_attributes.json#/definitions/template_options_order"
},
"product_dimensions": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_dimensions"
},
"custom_dimensions": {
"$ref": "../piwik_base_attributes.json#/definitions/custom_dimensions"
}
},
"additionalProperties": false,
"required": [
"product_mapping",
"category_mapping_type",
"products_array",
"order",
"product_dimensions",
"custom_dimensions"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
},
"products_array": {
"$ref": "ecommerce_common_attributes.json#/definitions/products_array"
},
"product_dimensions": {
"$ref": "ecommerce_common_attributes.json#/definitions/product_dimensions"
},
"custom_dimensions": {
"$ref": "../piwik_base_attributes.json#/definitions/custom_dimensions"
}
},
"additionalProperties": false,
Expand Down
Loading

0 comments on commit 7e41500

Please sign in to comment.