Articles on: Announcement Bar
This article is also available in:

đŸŽ¯ Announcement Bar — Advanced Targeting Options

The Placement tab is where you control exactly who sees your announcement bar, where it appears, and when it goes live. Instead of showing the same message to every visitor on every page, you can create precise visibility rules that match your campaign goals.


Whether you want to greet returning VIPs, promote a sale only to visitors from Instagram, or schedule a holiday banner to appear automatically — the targeting system gives you fine-grained control without touching any code đŸŽ¯



âš ī¸ Before You Begin


To configure Advanced Targeting settings:


→ Open an existing announcement bar
→ Or create a new one first


Then click the Placement tab inside the editor.


â„šī¸ Some targeting options are hidden depending on the placement type you selected during creation. For example, Page Targeting is not shown for Cart or Checkout placements, and Customer Targeting, Geolocation Targeting and UTM Source Targeting are not available for Checkout placements. These conditional sections are called out below so you know exactly when to expect them.



📐 Display Position


This setting controls the physical location of the bar on the page.


Storefront Positions


Available when the bar is created for Storefront Page placement:


  • Top bar pushes down the rest of the page — Pushes the rest of the page content downward. The bar sits in the normal document flow.
  • Top bar pushes down (always visible while scrolling) — Stays fixed at the top of the viewport while the customer scrolls. The page content is still pushed down.
  • Top bar overlaps top of the page — Floats over the top of the page without pushing content down.
  • Top bar overlaps top (always visible while scrolling) — Floats at the top and remains visible while scrolling.
  • Bottom bar overlaps bottom (always visible while scrolling) — Appears at the bottom of the viewport and stays there while scrolling.
  • Custom Position – Place the bar anywhere on your online store — You control exactly where the bar appears using a code snippet or app block.


Cart Positions


Available when the bar is created for Cart Page or Cart Drawer placement:


  • Top of cart — Inserts the bar at the top of the cart area.
  • Bottom of cart — Inserts the bar at the bottom of the cart area.
  • Custom Position – Place the bar anywhere on your online store — Place it yourself using a custom code snippet.


Checkout Position


Available when the bar is created for Checkout Page placement (Shopify Plus only):


  • The bar renders as a custom block inside the checkout flow. Positioning is managed through the checkout UI extension settings.


Custom Position Behavior


When Custom Position is selected:


  • The Page Targeting and Exclude pages dropdowns are automatically disabled.


A code snippet is provided for you to paste into your theme:
<div class="futureblink-announcement-block" id="{announcementId}"></div>


  • The bar will only render where this block is placed.



đŸŽ¯ Page Targeting


Page Targeting decides which pages the bar appears on. This section is hidden for Cart and Checkout placements since those are page-specific by design.


Available Options


  • Every page — Shows on all pages of your storefront.
  • Home page only — Shows only on the homepage.
  • All product pages — Shows on every product detail page.
  • All products in specific collections — Shows on product pages that belong to selected collections only.
    • When selected, a Select collections button appears so you can choose which collections qualify.
  • Specific product pages — Shows only on hand-picked product pages.
    • When selected, a Select products button appears so you can choose individual products.
  • All collection pages — Shows on every collection listing page.
  • Specific collection pages — Shows only on selected collection pages.
    • When selected, a Select collections button appears.
  • Specific store pages — Shows only on the Shopify store pages you pick (pages from your Shopify Pages list).
    • When selected, a Select pages button opens a searchable list of your store pages. Use Load more pages to see more.


How It Works on the Storefront


The bar checks the current page type and URL path before rendering:


  • For specific products, the bar matches against the product ID.
  • For products in specific collections, the bar checks if the current product belongs to any of the selected collections.
  • For specific collections, the bar matches against the collection handle in the URL.
  • For specific store pages, the bar matches against the store page ID.


Exclude Pages


Below Page Targeting, Exclude pages from displaying the bar lets you hide the bar on certain pages even if Page Targeting would otherwise show it. The default is None. The other options mirror the page options above (Home page only, All product pages, All products in specific collections, Specific product pages, All collection pages, Specific collection pages and Specific store pages), with buttons such as Select collections to exclude, Select products to exclude and Select pages to exclude. The app shows an error if you exclude everything you chose to show, for example excluding all product pages while showing on all product pages. Like Page Targeting, this section is hidden for Cart and Checkout placements.



⏰ Scheduling


Scheduling lets you control when the bar goes live and when it stops automatically. If left unconfigured, the bar appears immediately after publishing and stays live until you manually unpublish it.


Start Time


  • Right now — The bar appears immediately after publishing.
  • Specific date — The bar stays hidden until the chosen date and time.
    • When selected, a Date Picker appears along with hour, minute, and AM/PM inputs.


End Time


  • Never — The bar stays live indefinitely.
  • Specific date — The bar automatically stops showing after the chosen date and time.
    • When selected, a Date Picker appears along with hour, minute, and AM/PM inputs.


Important Scheduling Behavior


  • If you set both a start and end time, the end must be after the start.
  • A new or changed schedule cannot have an end date in the past. The app shows End date must be in the future. and will not save or publish it.
  • On the storefront, a scheduled bar is created in the DOM but hidden with display: none until the start time is reached. When the end time passes, it is automatically hidden again.


💡 Scheduling is perfect for flash sales, holiday campaigns, or time-limited announcements that you want to set up in advance.



đŸ‘Ĩ Customer Targeting


Customer Targeting lets you show or hide the bar based on who is viewing your store. This section is hidden for Checkout placements.


Visibility by Login Status


  • Show to all customers — Show to everyone, whether logged in or not.
  • Show only to logged-in customers — Hide the bar from guests.


Show bar to:


Controls which customer segment should see the bar:


  • All Customers — No restriction.
  • Target customers based on customer tag — Only customers with a specific tag can see the bar.
    • When selected, a text field appears for comma-separated tags.
    • Example: VIP, wholesale, returning
  • Target customers based on lifetime spent — Only customers who have spent a certain amount across all orders can see the bar.
    • When selected, a Lifetime spent input appears for the minimum amount.
    • The bar checks the customer's total_spent value from Shopify.


Hide bar from:


Controls which customer segment should not see the bar. Hide rules are evaluated before show rules.


  • No one - use the settings from above — Don't hide from anyone.
  • Target customers based on customer tag — Hide from customers with a specific tag.
    • When selected, a text field appears for comma-separated tags.
  • Target customers based on lifetime spent — Hide from customers who have spent at least a certain amount.
    • When selected, a number input appears for the minimum lifetime spend.


How Customer Targeting Works


On the storefront, the app checks the current customer's data (injected via Liquid):


  1. If Show only to logged-in customers is selected and the visitor is a guest → bar is hidden.
  2. If the visitor is a guest and the login option allows everyone, the bar is displayed. Tag and lifetime spent rules are not checked for guests.
  3. For logged-in customers, hide rules are checked first. If the customer matches any hide condition → bar is hidden.
  4. Show rules are checked next. If the customer matches the show condition (or All Customers is selected) → bar is displayed. A logged-in customer who matches no show condition does not see the bar.


âš ī¸ Important: Tag and spend-based rules only apply to logged-in customers. Guests are not filtered by them and still see the bar, unless you select Show only to logged-in customers.



🌍 Geolocation Targeting


Geolocation Targeting controls which countries or regions can see the bar. This section is hidden for Checkout placements.


  • All world — Visible to every visitor regardless of location.
  • Specific countries — Only visitors from selected countries can see the bar.
    • When selected, a Select countries button becomes active.
    • Clicking it opens a modal with a searchable list of 244 countries.
    • Select the countries you want to include. Selected countries appear as a list above the button.


How Geolocation Works


The storefront detects the visitor's country using Shopify's /browsing_context_suggestions.json endpoint. The result is cached in the browser's sessionStorage under futureblink_country_code so subsequent page loads don't repeat the request.


💡 Use this to run region-specific campaigns — for example, a "Free Shipping to the US" bar that only US visitors see.



🔗 UTM Source Targeting


UTM Targeting lets you show the bar only to visitors arriving from specific traffic sources. This is useful when you want to align messaging with a particular ad campaign or social platform.


This section is hidden for Checkout placements.


Enable UTM Filtering


Check the box "ONLY Show to visitors who match UTM Source" (under Allowed UTM Sources) to enable filtering.


âš ī¸ When enabled and at least one source is ticked, visitors who arrive directly (without a UTM source) will not see the bar.


Available Platform Checkboxes


When enabled, the following checkboxes appear:


  • TikTok
  • Facebook
  • Instagram
  • Google
  • Pinterest
  • Twitter


â„šī¸ Facebook and Instagram are linked: selecting one automatically includes the other in the check.


How UTM Targeting Works


The storefront reads the utm_source parameter in the URL of the page being viewed:


  • The bar shows if the utm_source value matches any selected platform.
  • The check runs on every page load and the UTM source is not remembered. If the visitor moves to a page whose URL has no matching utm_source, the bar is not shown there.


💡 Create a "Welcome Instagram Shoppers" bar that only appears when utm_source=instagram is present in the URL.



âąī¸ Time-on-Site Targeting


Time-on-Site Targeting controls how long a visitor must be on the page before the bar appears.


  • Always Show (Default) — The bar appears immediately when the page loads.
  • Show after a while — Delays the bar's appearance.
    • When selected, a Delay (in seconds) number input appears.
    • Accepts values from 1 to 300 seconds (5 minutes).


How Delay Works


On the storefront, the bar is created immediately, but starts with display: none. After the configured number of seconds, it becomes visible.


💡 A short delay (5–10 seconds) can feel less intrusive than an immediate popup, especially for announcement bars at the bottom of the page.



📱 Device Visibility


While device visibility is configured in the Design tab, it directly impacts targeting behavior and is worth mentioning here for completeness.


  • Desktop and mobile — Visible on all devices.
  • Desktop only — Hidden on screens 768px and narrower.
  • Mobile only — Hidden on screens wider than 768px.


This is useful when you want different bars (or different messaging) for desktop versus mobile shoppers.



âš ī¸ Important Notes


  • Custom Position disables Page Targeting because you control placement via a code snippet.
  • Checkout placement hides Customer Targeting, Geolocation Targeting and UTM Targeting.
  • Cart placement hides the Page Targeting dropdown because the bar is scoped to the cart area by design.
  • Geolocation uses the visitor's detected browsing country. VPNs or proxy services may cause unexpected results.
  • Customer tags and spend are only checked for logged-in customers. Guests are not filtered by tag or spend rules.
  • UTM filtering will hide the bar from direct traffic. Make sure this is intentional before enabling.
  • Multiple targeting conditions work together with AND logic. The bar must pass all active targeting checks to be displayed.



💡 Examples & Use Cases


Example 1 — Region-Specific Free Shipping


  • Geolocation: Specific countries → United States, Canada
  • Page Targeting: Every page
  • Position: Top bar pushes down (always visible while scrolling)


Result: Only US and Canadian visitors see a persistent free shipping bar.


Example 2 — VIP Customer Reward


  • Visibility: Show only to logged-in customers
  • Customer Show: Target customers based on customer tag → VIP
  • Customer Hide: No one
  • Page Targeting: Home page only


Result: Only logged-in customers tagged as VIP see the bar on the homepage.


Example 3 — Instagram Campaign Follow-Up


  • UTM Source: Instagram + Facebook
  • Page Targeting: All product pages
  • Position: Bottom bar overlaps bottom (always visible while scrolling)


Result: Visitors who land on a product page from an Instagram or Facebook link with a matching utm_source see a bar with campaign-specific messaging.


Example 4 — Scheduled Flash Sale


  • Scheduling: Start → Friday 9:00 AM, End → Friday 11:59 PM
  • Page Targeting: Every page
  • Position: Top bar pushes down the rest of the page


Result: The bar automatically appears at 9 AM on Friday and disappears at midnight — no manual unpublishing needed.


Example 5 — Delayed Bottom Bar


  • Time-on-Site: Show after a while → 10 seconds
  • Position: Bottom bar overlaps bottom (always visible while scrolling)
  • Page Targeting: All product pages


Result: After a visitor has browsed a product page for 10 seconds, a subtle bottom bar appears with a related offer.



🚀 Final Result


Once configured successfully, the Advanced Targeting settings help you show the right message to the right person at the right time.


With proper targeting in place:


✅ Bars appear only on pages where they are relevant
✅ Customers see messages tailored to their location, source, or segment
✅ Time-sensitive campaigns run automatically without manual intervention
✅ Guest and logged-in shoppers receive differentiated experiences
✅ Ad traffic receives consistent messaging from click to conversion
✅ Merchants avoid showing the same generic bar to every visitor


Using these targeting options effectively ensures every announcement bar feels intentional, timely, and relevant to the people who see it đŸŽ¯

Updated on: 27/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!