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 text | Dynamic tag |
|---|---|
| Always the same words | Changes per visitor, product, or order |
| Fine for generic promos | Best for social proof, sales, and personalization |
| No setup | Needs 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:
| Source | Examples |
|---|---|
| Logged-in user | Name, email, registration date |
| Current post or page | Title, URL, excerpt |
| WooCommerce product | Name, link, price meta |
| WooCommerce order | Order ID, dates, billing meta |
| Visitor cart | Cart total, item count, checkout URL |
| Content source settings | Which 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
- Open a template in the HTML Builder.
- Click Insert Tag in the toolbar.
- Search or browse by category.
- 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:
| Category | Topic article |
|---|---|
| Users | User, Post, and Page Tags |
| Posts and pages | User, Post, and Page Tags |
| Products and orders | WooCommerce Product and Order Tags |
| Cart | Cart Tags (WooCommerce) |
| Counters | Counter Tags |
| Comments (Pro) | Comment Tags (Pro) |
| Custom post types (Pro) | Tags Generator for Custom Post Types (Pro) |
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.