Using siteData in "Sleeknote - Popup builder"-app
Enabling siteData in your "Sleeknote - Popup builder"-app in Shopify allows you to use store information such as number of cart items, cart total, currency etc. in your Sleeknote campaigns. You can use this information as either merge tags directly in your campaign content, or as a targeting option determining which visitors should see your campaign.
Format
siteData information is stored as a flat JS object, meaning you refer to individual properties in a matching format as displayed in the code example below:
cart.total_discount: 0
cart.total_price: 10000
cart.currency: "DKK"
Supported Shopify variables
Cart
- cart.currency
- cart.discount_applications
- cart.item_count
- cart.items
- cart.items_subtotal_price
- cart.original_total_price
- cart.total_discount
- cart.total_price
- cart.total_weight
current_page
- page_title
customer
- Where and when is it defined
- Attributes
- customer.accepts_marketing
- customer.addresses
- customer.addresses_count
- customer.default_address
- customer.email
- customer.first_name
- customer.has_account
- customer.id
- customer.last_name
- customer.last_order
- customer.name
- customer.orders
- customer.orders_count
- customer.phone
- customer.tags
- customer.tax_exempt
- customer.total_spent