From 1621055a7ee6dee5807ce1efeff7c79570a648af Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 25 Feb 2025 15:33:17 +0100 Subject: [PATCH] feat: update schema --- README.md | 9 +++++++++ sesamy.schema.json | 18 ++++++++++++++++++ sesamy.yaml | 9 +++++++++ 3 files changed, 36 insertions(+) diff --git a/README.md b/README.md index 23a06e8..74a296c 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,15 @@ googleTagManager: containerId: '175348980' # The workspace id that should be used by the api workspaceId: '10' + # Web container variables + webContainerVariables: + dataLayer: + - link_url + lookupTables: + link_url_conversion_label: + input: '{{dlv.link_url}}' + valueTable: + 123456: 'https://foomo.org/' # Server container variables serverContainerVariables: eventData: diff --git a/sesamy.schema.json b/sesamy.schema.json index 01d4098..1387a08 100644 --- a/sesamy.schema.json +++ b/sesamy.schema.json @@ -451,6 +451,10 @@ "$ref": "#/$defs/github.com.foomo.sesamy-cli.pkg.config.GoogleTagManagerContainer", "description": "Google Tag Manager server container settings" }, + "webContainerVariables": { + "$ref": "#/$defs/github.com.foomo.sesamy-cli.pkg.config.GoogleTagManagerWebContainerVariables", + "description": "Google Tag Manager web container variables" + }, "serverContainerVariables": { "$ref": "#/$defs/github.com.foomo.sesamy-cli.pkg.config.GoogleTagManagerServerContainerVariables", "description": "Google Tag Manager server container variables" @@ -491,6 +495,20 @@ "additionalProperties": false, "type": "object" }, + "github.com.foomo.sesamy-cli.pkg.config.GoogleTagManagerWebContainerVariables": { + "properties": { + "dataLayer": { + "$ref": "#/$defs/[]string", + "description": "List of event data variables" + }, + "lookupTables": { + "$ref": "#/$defs/map[string]config.LookupTable", + "description": "Map of lookup table variables" + } + }, + "additionalProperties": false, + "type": "object" + }, "github.com.foomo.sesamy-cli.pkg.config.Hotjar": { "properties": { "enabled": { diff --git a/sesamy.yaml b/sesamy.yaml index bac8d35..a0882f8 100644 --- a/sesamy.yaml +++ b/sesamy.yaml @@ -36,6 +36,15 @@ googleTagManager: containerId: '175348980' # The workspace id that should be used by the api workspaceId: '10' + # Web container variables + webContainerVariables: + dataLayer: + - link_url + lookupTables: + link_url_conversion_label: + input: '{{dlv.link_url}}' + valueTable: + 123456: 'https://foomo.org/' # Server container variables serverContainerVariables: eventData: