Dynamic Tags

What Are Dynamic Tags?

4 min read

Dynamic tags are short placeholders you place inside a notification template. When the notification appears on your site, Notifal replaces each tag with real data from WordPress, WooCommerce, or your notification settings.

Example: you write Someone just bought {product_name} and a visitor might see Someone just bought Blue Running Shoes.

Tags work in the HTML Builder, Block Editor, and Elementor. Use Insert Tag in the builder toolbar or the Notifal tag panel in your editor.

Why use dynamic tags?

Static textDynamic tag
Always the same wordsChanges per visitor, product, or order
Fine for generic promosBest for social proof, sales, and personalization
No setupNeeds a content source on the notification (for data-driven tags)

Imported marketplace templates often include tags already. You can edit or add more after import.

How tags look

Tags are wrapped in curly braces:

{product_name}
{cart_total}
{user_first_name}

Some tags accept extra parts for dates or custom fields:

{product_meta__price}
{order_created_date_diff}
{user_meta_nickname}

(Exact syntax for meta and dates is covered in Custom Meta Tags and Date Formatting Tags.)

Where tags get their data

Notifal builds a context when rendering a notification:

SourceExamples
Logged-in userName, email, registration date
Current post or pageTitle, URL, excerpt
WooCommerce productName, link, price meta
WooCommerce orderOrder ID, dates, billing meta
Visitor cartCart total, item count, checkout URL
Content source settingsWhich products, orders, or posts rotate into the notification

Cart tags use the visitor's live cart. Product and order tags usually follow the notification's Content Source tab.

Insert tags in your template

HTML Builder

  1. Open a template in the HTML Builder.
  2. Click Insert Tag in the toolbar.
  3. Search or browse by category.
  4. Click a tag to insert it.

See Creating a Template with the HTML Builder.

Block Editor

Use Notifal blocks and the tag inserter in the block settings. See Notifal Gutenberg Blocks Reference.

Elementor

Use Notifal widgets and dynamic tag controls. See Notifal Elementor Widgets Reference.

Preview with sample data

Builders and Frontend Preview can show sample values when no real order or product is loaded. That helps you check layout before going live.

Live values appear on the frontend when the notification runs with matching content source and display rules.

Tag categories

Tags are grouped for easier browsing:

Hide categories you do not need under Managing Tag Categories in Settings.

WooCommerce setup

Product, order, and cart tags need WooCommerce active on your site. Follow WooCommerce Setup for Notifal first.

Dynamic Tags series