From 7e41500fb6687202641d18092095c2474beee71a Mon Sep 17 00:00:00 2001 From: Oskar Barcz Date: Tue, 5 Sep 2023 13:52:04 +0200 Subject: [PATCH] TM-12848 Tag Manager for release 18.1.0 --- .../list/changelog_list_response_example.json | 2 - .../list/changelog_list_response_schema.json | 28 ------- .../response/ecommerce_add_to_cart_get.json | 2 +- .../get/response/ecommerce_order_get.json | 2 +- .../ecommerce_product_detail_view_get.json | 2 +- .../ecommerce_remove_from_cart_get.json | 2 +- .../schema/get/response/piwik_event_get.json | 2 +- .../response/piwik_goal_conversion_get.json | 2 +- .../response/piwik_virtual_page_view_get.json | 2 +- .../ecommerce_add_to_cart_attributes.json | 6 ++ .../ecommerce_add_to_cart_attributes_get.json | 42 ++++++++++ .../ecommerce_common_attributes.json | 45 +++++++++++ .../ecommerce/ecommerce_order_attributes.json | 6 ++ .../ecommerce_order_attributes_get.json | 81 +++++++++++++++++++ ...mmerce_product_detail_view_attributes.json | 6 ++ ...ce_product_detail_view_attributes_get.json | 42 ++++++++++ ...ecommerce_remove_from_cart_attributes.json | 6 ++ ...merce_remove_from_cart_attributes_get.json | 42 ++++++++++ .../tag_templates/piwik_attributes.json | 3 +- .../piwik_event_attributes_get.json | 72 +++++++++++++++++ .../piwik_goal_conversion_attributes_get.json | 46 +++++++++++ ...iwik_virtual_page_view_attributes_get.json | 46 +++++++++++ tag_manager/skip_link_tracking.rst | 4 +- 23 files changed, 451 insertions(+), 40 deletions(-) create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_event_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_goal_conversion_attributes_get.json create mode 100644 tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_virtual_page_view_attributes_get.json diff --git a/tag_manager/authorized_api/src/changelog/example/list/changelog_list_response_example.json b/tag_manager/authorized_api/src/changelog/example/list/changelog_list_response_example.json index 4669bdae..4ebef0c4 100644 --- a/tag_manager/authorized_api/src/changelog/example/list/changelog_list_response_example.json +++ b/tag_manager/authorized_api/src/changelog/example/list/changelog_list_response_example.json @@ -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", @@ -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", diff --git a/tag_manager/authorized_api/src/changelog/schema/list/changelog_list_response_schema.json b/tag_manager/authorized_api/src/changelog/schema/list/changelog_list_response_schema.json index 8919495c..f4c37aee 100644 --- a/tag_manager/authorized_api/src/changelog/schema/list/changelog_list_response_schema.json +++ b/tag_manager/authorized_api/src/changelog/schema/list/changelog_list_response_schema.json @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -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" }, @@ -343,7 +316,6 @@ } ], "required": [ - "version_id", "author", "change_type", "resource_id", diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_add_to_cart_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_add_to_cart_get.json index 970bed56..c6e2c9d4 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_add_to_cart_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_add_to_cart_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_order_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_order_get.json index 8dd085fa..11240401 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_order_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_order_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_product_detail_view_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_product_detail_view_get.json index 937a79d8..b2828d98 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_product_detail_view_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_product_detail_view_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_remove_from_cart_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_remove_from_cart_get.json index 459a1a09..476647af 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_remove_from_cart_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/ecommerce_remove_from_cart_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_event_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_event_get.json index b4f7ffc0..6d06c6c7 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_event_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_event_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_goal_conversion_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_goal_conversion_get.json index 731ba9c5..4ae5bb9a 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_goal_conversion_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_goal_conversion_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_virtual_page_view_get.json b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_virtual_page_view_get.json index f760accd..13db45f4 100644 --- a/tag_manager/authorized_api/src/tags/schema/get/response/piwik_virtual_page_view_get.json +++ b/tag_manager/authorized_api/src/tags/schema/get/response/piwik_virtual_page_view_get.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json index fa37ffe9..12b88e83 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes.json @@ -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, diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes_get.json new file mode 100644 index 00000000..20a13d73 --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_add_to_cart_attributes_get.json @@ -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" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_common_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_common_attributes.json index 75b5e764..d36cc1f0 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_common_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_common_attributes.json @@ -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" diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes.json index 28f43425..aa5b5cea 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes.json @@ -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, diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes_get.json new file mode 100644 index 00000000..59feed09 --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_order_attributes_get.json @@ -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" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json index 3e3f1983..32bb4188 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes.json @@ -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, diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes_get.json new file mode 100644 index 00000000..11a91327 --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_product_detail_view_attributes_get.json @@ -0,0 +1,42 @@ +{ + "definitions": { + "template": { + "$ref": "../../tag_attributes.json#/definitions/template", + "enum": [ + "ecommerce_product_detail_view" + ] + }, + "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" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json index 908f0e71..193f695f 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes.json @@ -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, diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes_get.json new file mode 100644 index 00000000..24a888d9 --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/ecommerce/ecommerce_remove_from_cart_attributes_get.json @@ -0,0 +1,42 @@ +{ + "definitions": { + "template": { + "$ref": "../../tag_attributes.json#/definitions/template", + "enum": [ + "ecommerce_remove_from_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" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_attributes.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_attributes.json index 4d55edc6..3f84b3d9 100644 --- a/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_attributes.json +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_attributes.json @@ -313,7 +313,8 @@ "tracker_domains", "tracker_php_url", "tracker_js_url", - "tracker_site_id" + "tracker_site_id", + "piwik_custom_dimensions" ] } } diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_event_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_event_attributes_get.json new file mode 100644 index 00000000..1fe180c8 --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_event_attributes_get.json @@ -0,0 +1,72 @@ +{ + "definitions": { + "template": { + "$ref": "../tag_attributes.json#/definitions/template", + "enum": [ + "piwik_event" + ] + }, + "template_options": { + "description": "[Tag template options](#tag-template-options)", + "type": "object", + "properties": { + "category": { + "description": "Event category", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "action": { + "description": "Event action", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "name": { + "description": "Event name", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "value": { + "description": "Event value", + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "custom_dimensions": { + "$ref": "piwik_base_attributes.json#/definitions/custom_dimensions" + } + }, + "additionalProperties": false, + "required": [ + "category", + "action", + "custom_dimensions" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_goal_conversion_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_goal_conversion_attributes_get.json new file mode 100644 index 00000000..3301c7db --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_goal_conversion_attributes_get.json @@ -0,0 +1,46 @@ +{ + "definitions": { + "template": { + "$ref": "../tag_attributes.json#/definitions/template", + "enum": [ + "piwik_goal_conversion" + ] + }, + "template_options": { + "description": "[Tag template options](#tag-template-options)", + "type": "object", + "properties": { + "id": { + "description": "Goal identifier", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "revenue": { + "description": "Goal revenue", + "oneOf": [ + { + "$ref": "../tag_types.json#/definitions/positive_number" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "custom_dimensions": { + "$ref": "piwik_base_attributes.json#/definitions/custom_dimensions" + } + }, + "additionalProperties": false, + "required": [ + "id", + "custom_dimensions" + ] + } + } +} diff --git a/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_virtual_page_view_attributes_get.json b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_virtual_page_view_attributes_get.json new file mode 100644 index 00000000..9f64870b --- /dev/null +++ b/tag_manager/authorized_api/src/tags/schema/tag_templates/piwik_virtual_page_view_attributes_get.json @@ -0,0 +1,46 @@ +{ + "definitions": { + "template": { + "$ref": "../tag_attributes.json#/definitions/template", + "enum": [ + "piwik_virtual_page_view" + ] + }, + "template_options": { + "description": "[Tag template options](#tag-template-options)", + "type": "object", + "properties": { + "url": { + "description": "Page URL (for example: `https://example.org`, `/pages/about-us`)", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "document_title": { + "description": "Page title", + "anyOf": [ + { + "$ref": "../tag_types.json#/definitions/non_empty_string" + }, + { + "$ref": "../../../common/schema/common_types.json#/definitions/variable_reference" + } + ] + }, + "custom_dimensions": { + "$ref": "piwik_base_attributes.json#/definitions/custom_dimensions" + } + }, + "additionalProperties": false, + "required": [ + "url", + "custom_dimensions" + ] + } + } +} diff --git a/tag_manager/skip_link_tracking.rst b/tag_manager/skip_link_tracking.rst index b7e33c2c..86080f8c 100644 --- a/tag_manager/skip_link_tracking.rst +++ b/tag_manager/skip_link_tracking.rst @@ -37,11 +37,11 @@ That is where the ``data-disable-delay`` attribute comes in. `data-disable-delay` attribute ------------------------------ -``data-disable-dalay`` is special custom attribute that is recognized by the +``data-disable-delay`` is special custom attribute that is recognized by the container. Once the anchor element is clicked and the aforementioned attribute is detected on the element, it tells the container to skip the execution of the logic responsible for delaying the default action. Listeners attached to the -element are executed immediatly after clicking. +element are executed immediately after clicking. Example