Smartarget Countdown Popup
Add a Smartarget countdown popup to Webflow through the Marketplace app or a pasted script, then set the timer and popup in the Smartarget dashboard.

A flash sale or launch page needs a ticking clock that appears at the right moment. Building one by hand means writing the timer JavaScript and the logic that decides when it opens and when it stays closed. Every new campaign then sends you back into code to change dates and styles. Countdown Popup, from Smartarget, moves that work out of your site code and into a hosted dashboard.
Once the app or snippet is installed, the countdown runs on your published Webflow pages. You set the timer and the popup content in Smartarget, while Webflow hosts and publishes the page.
This integration fits ecommerce teams running flash sales, holiday promotions, and limited-time discounts. Marketers use it for pre-launch campaigns that count down to a product release. Event teams use it to push webinar registrations before a deadline. Freelancers and agencies can add it to client sites.
How to integrate Smartarget Countdown Popup with Webflow
Countdown Popup is a timer popup from Smartarget, which also makes chat buttons, popup forms, and other website widgets. The popup shows a countdown with your offer on desktop and mobile. Its button can collect an email address or send visitors to a landing page.

Smartarget's preview for Webflow gives the popup two ways to open. Visitors can click a floating button, or the popup can open automatically on page load after a delay you set in seconds. With automatic opening, a dismiss period controls when a closed popup returns, and a visitor who submits the form never sees it again. The Webflow preview has no exit intent or scroll trigger, and no page targeting.
The timer has two modes. A Start-to-End Timer counts down to a fixed start and end date, which suits a sale with a hard deadline. An individual countdown gives each visitor their own period in days, hours, minutes, or seconds, then either restarts or stops showing the popup when it ends. Smartarget's script stores that per-visitor end time in the visitor's browser, so clearing site data or switching devices starts a new countdown.
You can add the popup in three ways. The Countdown Popup app installs the Smartarget script from the Apps Marketplace without writing code. Custom code and Code Embed elements let you paste the snippet site-wide, on one page, or inside a layout. The Webflow Data API lets your own OAuth Webflow App register and apply the snippet across sites, which takes server-side development that Smartarget does not document.
Most sites need only one method. Agencies managing many client sites may pair the app or Code Embed with the API.
Install the Countdown Popup app
The Countdown Popup app adds the Smartarget script to your site through the Apps Marketplace. Its listing names Smartarget as the publisher, carries the Approved by Webflow badge, and asks for two permissions: read site data and publishing, and read and write custom code. You can authorize it for a single site or a whole Workspace. You still configure the countdown itself inside Smartarget.

To set up the integration:
- Open the Countdown Popup listing, log in, and click Add to site.
- Select the Workspaces or sites you want to add the app to.
- Click Authorize app.
- Click the Go to 'Countdown Popup' button on the pop-up banner.
- Follow the app's instructions, then publish your site and check the live URL.
You can also open the Apps panel, search for the app, and click Install on site. The Webflow Apps overview notes that Workspace authorization covers all current and future sites in that Workspace.
The listing describes these capabilities:
- Mailing list: The popup can collect email addresses while the clock runs.
- Landing page traffic: The button can send visitors to a specific landing page for a limited time.
- Deal timer: You can set a timer on a special deal to add urgency.
- Styling: You can adjust the popup to fit your site's style.
The listing doesn't explain how the app install relates to Smartarget's copy-and-paste snippet. If you want to control exactly where the script loads, use custom code instead.
Add Countdown Popup with custom code and Code Embed elements
Smartarget installs through a JavaScript snippet you copy from its dashboard. Its Webflow setup guide lists four steps that end with pasting that code into your site, without saying where. Footer code covers every page and page settings cover one page. A Code Embed element places the script inside a layout. To add head and body code, you need an active Site plan or a Core, Growth, Agency, or Freelancer Workspace. Each code field and each Code Embed accepts up to 50,000 characters.
Add the script site-wide in Footer code
Footer code places the script just before the closing body tag on every page. Webflow's guidance is that scripts placed there let page content load before the JavaScript runs, which helps page load speed.
To add the script site-wide:
- Sign up for Smartarget. You don't need a credit card.
- Set up your Countdown Popup, including how it opens, its colors, the popup text, and the timer.
- Go to Integrations and copy the JavaScript code.
- In Webflow, open Site settings > Custom code.
- Paste the snippet in the Footer code section and click Save changes.
- Publish to your staging domain (yoursite.webflow.io) first.
- Open the staging site on desktop and mobile, and check the browser DevTools Console for JavaScript errors.
- Publish to production once the popup displays correctly.
Third-party scripts add page weight, so run PageSpeed Insights after launch.
Add the script to specific pages
For a sale landing page or webinar signup page, paste the snippet into that page's settings. The countdown then applies only to that page, and the code loads after any site-wide code.
To add the script to one page:
- Open your site in Webflow and open the Pages panel.
- Hover over the page and click the Page settings icon.
- Paste the Smartarget snippet in the before closing body tag section under Custom code.
- Save your changes and publish the site.
Use this path when only some pages carry the offer. The Smartarget preview for Webflow has no page targeting, so page placement is how you scope the popup.
Load the script from a Code Embed element
A Code Embed element loads the snippet from a specific section or component, such as a component you reuse on several sale pages. The popup still opens as an overlay, because the Smartarget preview for Webflow offers no inline layout.
To add the snippet in a Code Embed:
- Copy your Smartarget snippet from Integrations.
- Open the Add panel and drag a Code Embed element onto the canvas.
- Paste the code, then click Save and close.
- Publish the site and check the live page.
Custom code won't run in expand canvas view, and its effects go live only after you publish, so test on the live site.
Build with the Webflow Data API
Smartarget doesn't document a public API or webhooks for Countdown Popup, so programmatic work runs through the Webflow Data API. This path suits agencies and developers who deploy the Smartarget snippet across many sites from their own Webflow App. It requires OAuth and server-side development.
The Data API covers each step of that flow:
- Register: Register inline script (
POST /v2/sites/{site_id}/registered_scripts/inline) stores the snippet source on a site. Inline scripts are limited to 2000 characters, so check your snippet's length first. - Apply: Add/update site custom code (
PUT /v2/sites/{site_id}/custom_code) applies registered scripts to the whole site. - Remove: Delete site custom code (
DELETE /v2/sites/{site_id}/custom_code) removes every script your App applied to a site. - Events: Webflow webhooks such as
site_publishnotify your server about site events.
No documented Countdown Popup feature reads from the Webflow CMS or form data, so treat CMS and form APIs as supporting pieces for your own App logic.
Deploy the Smartarget script with the Custom Code API
Only Webflow Apps with OAuth tokens can call the custom code endpoints. Site tokens and Workspace tokens can't, per Webflow's custom code guide.
To deploy the script:
- Create a Webflow App with the scopes
sites:read,sites:write,pages:read,pages:write,custom_code:read, andcustom_code:write. - Send the site owner to
https://webflow.com/oauth/authorize, then exchange the returned code for an access token. - Register the snippet with
POST https://api.webflow.com/v2/sites/{site_id}/registered_scripts/inlineand sendsourceCode,version, anddisplayName. - For a script hosted elsewhere, use
POST https://api.webflow.com/v2/sites/{site_id}/registered_scripts/hostedwithhostedLocationandintegrityHash. - Apply the registered script with
PUT https://api.webflow.com/v2/sites/{site_id}/custom_code, listing it in thescriptsarray. - Ask the site owner to publish. Applied code takes effect only on publish, and Webflow's guide advises against publishing automatically on a user's behalf.
A minimal inline registration body looks like this:
{
"sourceCode": "<Smartarget snippet from Integrations>",
"version": "1.0.0",
"displayName": "SmartargetCountdown"
}
Script versions are immutable, so any change to the snippet needs a new version. Don't also paste the same snippet by hand, because manually pasted code can run twice alongside the App's copy.
Remove the script when your App is uninstalled
Clean up applied scripts when a site removes your App, so the popup stops loading.
To remove the script:
- Keep
custom_code:writeplussites:writeorpages:writein your App's scopes. - Call
DELETE https://api.webflow.com/v2/sites/:site_id/custom_codeto remove every script your App applied. - Confirm the
204 No Contentresponse. - Publish the affected site.
This call leaves the site's registered scripts in place. To remove one script, call the Add/Update Custom Code endpoint without it.
What you can build with the Smartarget Countdown Popup Webflow integration
Each of these uses settings the Smartarget preview for Webflow offers today.
- Flash sale deadline: Use the Start-to-End Timer on sale product pages, such as a 2-hour Black Friday flash sale, and set the end date to the moment the discount expires.
- Webinar registration: Count down to the event's start time with a Start-to-End Timer, and point the popup's button at your registration page.
- Pre-launch signup: On a coming-soon page, count down to a product release and set the button to submit a form, so visitors join your mailing list before launch day.
- Welcome offer: Give each new visitor their own 24-hour window with the individual countdown, and choose whether the timer restarts or the popup stops showing when it runs out.
If you run the snippet across many client sites, learn how to push scripts to pages with the Data API instead of pasting it by hand.
Frequently asked questions
Yes, for the custom code and Code Embed routes, which need a Core, Growth, Agency, or Freelancer Workspace or an active Site plan. New sites start on the free Starter Site plan, and Choose a Site plan explains how to upgrade from Site settings > Plans. The Countdown Popup listing names no required Webflow plan for the app route.
Put it in Footer code. Webflow says scripts placed just before the closing body tag let page content load before the JavaScript runs, and external scripts in head code can slow page loads. Use a page's Before
</body>tag field instead when only one page carries the offer.Custom code is off in preview mode by default. Turn on the Enable custom code toggle in the bottom left corner, as Preview mode describes. Its effects go live only after you publish. On Smartarget's free plan, apps appear on all pages for 14 days and then only on the homepage, per the Smartarget pricing page.
Smartarget's app FAQ, written for BigCommerce, directs post-install changes to the Smartarget Dashboard. The dashboard also shows click counts and the pages with the most clicks. Open the Webflow setup preview to change the timer, colors, popup text, or how the popup opens, then republish if you pasted a new snippet.
Yes. Contact details a visitor submits in the popup go to Smartarget, which can notify you by email or Telegram. Smartarget's loader script also sends each click on the app to Smartarget with the page URL, the device type, and the seconds before the click, and pushes a
Smartarget App Clickevent to a Google Tag ManagerdataLayerif the page has one. The individual countdown stores its end time in the visitor's browser storage. Check this against your consent setup before you publish.

Description
Add a countdown popup to Webflow pages through the Countdown Popup app or a JavaScript snippet in custom code. You set the timer and how the popup opens in the Smartarget dashboard.
This integration page is provided for informational and convenience purposes only.
Orimon
Connect Orimon with Webflow to answer visitor questions and capture leads through an AI chatbot trained on your published site.
Chaty
Add a floating Chaty chat widget to your Webflow site that routes visitors to WhatsApp, Messenger, phone, and other channels across 20+ supported platforms.
Social Intents live chat
Connect Social Intents live chat with Webflow to answer visitor questions in real time from Microsoft Teams or Slack, with Google Chat also supported.

Smartarget Contact Us
Connect Smartarget Contact Us with Webflow to put WhatsApp, Messenger, email, and other contact channels behind one floating button on your site.

Telegram Chat - Contact Us
Add Smartarget's Telegram contact button to your Webflow site so visitors can open a chat with your Telegram account, group, channel, or bot.

Countdown Bar - Timer
Add Smartarget's Countdown Bar - Timer to Webflow with the Marketplace app or a script, and show one fixed deadline or a separate countdown per visitor.

Smartarget Reviews
Connect Smartarget Reviews, a website reviews widget, with Webflow to show approved customer reviews and star ratings on your pages.

Twise
Connect Twise, an AI chat assistant, with Webflow to answer visitor questions, capture leads, and respond in 92 languages using a chat widget that learns from your site content.

Flowstar: Banners
Connect Flowstar: Banners with Webflow to display promotional pop-ups and announcement banners without writing code


