Announcement Bar
Announcement Bar adds customizable promotional notifications to Webflow sites through a simple JavaScript embed
How to integrate Announcement Bar with Webflow
E-commerce stores and online businesses need consistent ways to broadcast shipping thresholds, promotional codes, and time-sensitive offers across their sites without constant developer intervention. Announcement bars keep customers informed about sales, shipping updates, and product launches while remaining easy to update independently from your main site content.
Integrate Smartarget Announcement Bar with Webflow through the official marketplace app or by embedding JavaScript code in your site settings. The marketplace app provides centralized management through your Webflow dashboard, while code embedding offers site-wide or page-specific targeting through custom code in head and body tags. Both methods let you configure messages in the Smartarget dashboard and see updates take effect immediately on your published site.
Use the Announcement Bar app
Smartarget Announcement Bar is available through the official Webflow Apps Marketplace, providing app-based integration within Webflow's official Apps & Integrations ecosystem. The marketplace listing confirms support for floating announcement bars with customizable placement, multiple message rotation, and responsive design that automatically adapts to desktop and mobile viewing contexts.
Installing through the marketplace provides centralized management through your Webflow dashboard's Apps section, where you can access Smartarget's visual customization interface for color scheme configuration and CTA button setup. The marketplace app provides the same core functionality as code embedding for promotional notifications, shipping threshold displays, and time-sensitive offers across your Webflow site.
Once installed from the marketplace, configure your announcement content directly in the Smartarget dashboard. Message updates take effect immediately on your published site without requiring republishing through Webflow.
Embed the announcement bar code
Announcement Bar operates through JavaScript embedding, which means you configure your messages visually and then add a code snippet to your Webflow site. This approach works well for promotional banners, shipping notifications, and sales announcements. The Webflow Message Bar integration guide confirms the process takes approximately five minutes from start to finish.
Configuration happens in two stages. First, build your announcement bar in the Smartarget dashboard with custom messages, colors, and CTA buttons. Then copy the generated JavaScript code and paste it into Webflow's custom code section. Placing the code in Site Settings → Custom Code → Footer Code is recommended for optimal performance, ensuring the bar loads after your page content.
This integration method provides the following capabilities:
- Multiple message rotation with automatic cycling between announcements
- Custom color schemes matching your brand identity (Carrd Message Bar documentation)
- CTA button integration with custom linking and styling (Thinkific Message Bar documentation)
- Responsive design adapting to mobile and desktop viewports (Podia Message Bar documentation)
- Promotional code display for discount campaigns (Ecwid Message Bar documentation)
You need a paid Webflow plan to add custom code. According to Webflow's custom code documentation, you can add custom code with either a paid Site Plan (CMS Plan or higher) or a Workspace Plan membership (Core, Growth, Agency, or Freelancer).
Complete installation workflow
Here's the step-by-step process based on Smartarget's official documentation and Webflow's embedding guidelines.
Configure in Smartarget:
- Create an account at smartarget.online
- Navigate to the Message Bar application
- Set up your announcement content (text, styling, CTAs)
- Configure visibility rules and display behavior
- Copy the JavaScript embed code from the Smartarget Integrations section
Implement in Webflow:
- Open your project in Webflow
- For site-wide display, go to Project Settings → Custom Code
- For page-specific display, select the page, then Page Settings → Custom Code
- Scroll to the Footer Code section (before
</body>tag) - Paste your Smartarget JavaScript snippet
- Save and publish your site
Verify functionality:
- Publish to your staging domain or use Webflow's custom code preview mode
- Open the published site in a browser
- Check that the announcement bar appears correctly
- Test responsive behavior on mobile devices
- Verify CTA buttons link to the correct destinations
Webflow recommends placing JavaScript before the closing </body> tag because this allows the page content to load first, improves perceived performance, and prevents render-blocking according to their custom code documentation.
Managing content updates
Once installed, update announcement messages through the Smartarget dashboard without touching Webflow code. Change message text, adjust colors, modify CTA buttons, or update promotional codes. All changes take effect immediately on your published site. This approach separates technical implementation from content management, letting marketing teams update promotions independently.
What you can build
Integrating Announcement Bar with Webflow creates opportunities for promotional messaging, cart value optimization, and customer communication across your entire site.
- Flash sale promotions: Display time-limited offers with countdown urgency messaging and CTA buttons linking directly to sale category pages
- Free shipping thresholds: Show dynamic cart value messages to increase average order values with messaging like "Free shipping on orders over $50"
- Product launch announcements: Broadcast new product availability across your entire site with links to product documentation or demo videos
- Seasonal campaign coordination: Rotate multiple holiday or seasonal messages throughout customer browsing sessions to communicate multiple seasonal benefits
Frequently asked questions
Place the Announcement Bar JavaScript in Webflow's Footer Code section before closing the<body> tag.
Note: This is expected behavior. The Smartarget announcement bar uses JavaScript code that only executes on published sites, not in Webflow Designer preview mode.
Webflow Designer preview shows placeholders for script tags but doesn't execute JavaScript. The custom code embed documentation confirms that scripts display as placeholders in the Designer preview and only execute on published sites. Publish your site to a staging domain or production URL to test announcement bar functionality.
Start by verifying your Webflow plan supports custom code, then confirm you published your site (not just saving in Designer). Check that you pasted the code in the Footer Code section of Site Settings or Page Settings. Use browser developer tools (F12) to check the Console tab for JavaScript errors and the Network tab to verify the Smartarget script loads. The Webflow custom code in head and body tags documentation provides systematic troubleshooting steps including clearing browser cache and testing in incognito mode to rule out caching issues.
Description
Smartarget Announcement Bar (also termed "Message Bar") is a JavaScript-based website engagement widget designed for e-commerce platforms and online stores.
This integration page is provided for informational and convenience purposes only.

Flowstar Urgency Countdown Timer
Improve conversions by adding an urgency countdown timer in your web pages.

Finsweet List Sort
Finsweet List Sort adds client-side sorting functionality to Webflow Collection Lists without backend configuration.

Flowtrix Schema
Add structured data to your Webflow sites without writing JSON-LD code with Flowtrix Schema.

Social Proof Sales
Social Proof Sale is a notification platform that displays real-time purchase notifications, customer reviews, and order volume metrics through customizable popup widgets.

Flowstar: Store Locator Map
Enable location display and Google Maps functionality in your website with Flowstar Store Locator.

Social Icons - Follow Us
Add customizable social media follow icons to your Webflow site through JavaScript embed codes.

Flatly
Flatly exports data from 40+ business tools (CRMs, databases, cloud storage) to spreadsheets and file storage, which you then import to Webflow CMS

Arvow

Massively AI
Massively AI brings AI-powered conversational marketing (engaging customers through interactive chat dialogs) to your Webflow site.


