Web Pixel settings field in shopify.extension.toml

Web Pixel settings field in shopify.extension.toml

Iva12
Shopify Partner
1 0 0

Hello, I am following Build web pixels tutorial. So far, I have managed to create a web pixel extension and connect it to my dev stores using GraphQL example in Step 5. However, I couldn't find an explanation what do the settings defined in shopify.extension.toml actually do. Default sample provided in the docs is:

type = "web_pixel_extension"
name = "pixel"
runtime_context = "strict"

[customer_privacy]
analytics = true
marketing = true
preferences = false
sale_of_data = "enabled"

[settings]
type = "object"

[settings.fields.accountID]
name = "Account ID"
description = "Account ID"
type = "single_line_text_field"
validations = [
{ name = "min", value = "1" }
]

 
What is the use-case for settings.fields.accountID? Is it safe to remove it from the settings?

Replies 0 (0)