FAQ about custom widgets
Last updated
Was this helpful?
Last updated
Was this helpful?
A custom widget template is a piece of code (it can include JavaScript, CSS and HTML) configured to be used in one or several campaigns. It serves as a base for a custom widget and must contain the minimum code to make a custom widget work. Custom widget templates can be created and managed from the Widgets library of the platform.
Using a custom widget can be useful in the following cases:
You want to set up a string of messages (pop-ins, banners, overlays, etc.) for your marketers to use systematically the same layout (to preserve UI, design system, and consistency though your website).
You want to share and spread this previous work on your different AB Tasty accounts (because you manage several websites or several language versions of your website through different AB Tasty accounts).
You plan to reuse the custom widget in another account, campaign, variation, or in the future recurring campaigns, instead of duplicating your campaign.
You want to reduce the back-and-forth communication on low-value edits (colors, font sizes, images...) between your digital marketing team and your design team.
You want to keep control over time.
Here is a non-exhaustive list of custom widgets you can create:
Pop-in or another kind of promotional widget with a specific behavior/ UI path you can’t find in the AB Tasty widget library.
A complex tracker, such as “event sent each time the user puts an item in their basket, then goes to the basket page, then comes back to the homepage”.
Reusable buttons, bullet point lists, popovers, product tours, carousels, and so on: every single element which already exists in your design system and will be usable in the AB Tasty visual editor as an infinite source of small custom widgets to create design system friendly campaigns.
Yes. For example, you may need to create a collapsible block using a custom widget.
You may also want to create a carousel custom widget and a button custom widget.
If each of these custom widgets is freely disposable (through the "form" or JavaScript code), you can also nest them together.
For the moment, it's not possible to import a custom widget from one account to another directly from the editor. The account that owns the custom widget needs to duplicate it to the new account first.