Get HashBar Pro for just $1 for your first month Claim Now →

Targeting

HashBar Team
3 min read
Announcement Bars (10)

Overview

Targeting allows you to display your announcement bar to the right audience, at the right time, on the right pages. Use targeting to increase relevance and conversion rates while respecting user preferences.

Page Targeting

Control which pages your announcement bar appears on throughout your website.

Page Targeting Options

Option Description Best For
All Pages Bar appears on every page of your website Sitewide announcements, important messages, global promotions
Homepage Only Bar appears exclusively on your home/landing page Homepage-specific offers, welcome messages, promotional landing pages
Specific Pages/Posts Bar appears only on selected pages (you choose which ones) Product-specific promotions, category announcements, targeted messaging
All Except Excluded Bar appears on all pages except those you specify Sitewide bars with specific page exceptions (e.g., checkout pages, admin pages)

Configuring Page Targeting

  1. Navigate to the Targeting section in your dashboard
  2. Click on Page Targeting
  3. Select your targeting mode:
    • Click All Pages to show on entire site
    • Click Homepage Only for homepage-only display
    • Select Specific Pages to choose pages manually
    • Select All Except to exclude specific pages
  4. If using Specific Pages or All Except:
    • Type page URLs or use the page picker
    • Add multiple pages by clicking "Add Page"
    • Remove pages by clicking the X button
  5. Preview your targeting selection
  6. Click Save to apply page targeting

Page Targeting Examples

E-commerce Product Sale:

  • Target: Specific Pages - Select "/dresses", "/shoes", "/accessories" collection pages
  • Message: "30% off all items in this category!"
  • Effect: Only shows sale bar on discounted product category pages

Holiday Promotion (Sitewide):

  • Target: All Pages
  • Message: "Holiday Sale: Save 50% on everything"
  • Effect: Consistent messaging across entire website

Landing Page Specific:

  • Target: Specific Pages - Select only "/summer-sale" landing page
  • Message: "Exclusive summer offer for you!"
  • Effect: Bar only appears for traffic to that specific campaign page

Device Targeting

Show your announcement bar only on specific device types: desktop, tablet, or mobile.

Device Categories

Device Type Screen Size Common Devices
Desktop 1025px and above Desktop computers, laptops, large monitors
Tablet 768px - 1024px iPads, Android tablets, large mobile devices
Mobile Below 768px Phones, small mobile devices

Device Targeting Strategies

  • All Devices: Bar appears on desktop, tablet, and mobile (default)
  • Desktop Only: Exclude mobile users; useful for complex layouts or desktop-specific offers
  • Mobile Only: Target mobile users specifically; useful for app promotions or mobile-specific deals
  • Exclude Mobile: Show on desktop and tablet but not on small screens
  • Tablet & Mobile: Target smaller screens while excluding desktop

Configuring Device Targeting

  1. In the Targeting section, find Device Targeting
  2. Check the boxes for devices you want to target:
    • ☑ Desktop - Include desktop viewers
    • ☑ Tablet - Include tablet users
    • ☑ Mobile - Include mobile phone users
  3. Uncheck any devices to exclude them
  4. Preview how your bar appears on different screen sizes
  5. Click Save to apply device targeting

Device Targeting Best Practices

  • Test Responsiveness: Ensure your bar design works on all targeted devices
  • Mobile Optimization: For mobile-specific bars, test button clickability
  • Content Fit: Ensure message length works on smaller screens
  • Height Considerations: Mobile bars may need to be shorter to avoid covering too much content
  • Touch Targets: On mobile, ensure close button and CTA are large enough for thumbs (min 40x40px)

User Targeting

Display your announcement bar to specific user segments: all visitors, logged-in users, or guest visitors.

User Targeting Options

Option Description Best For
All Users Bar appears to everyone (logged-in and guests) Sitewide announcements, general promotions
Logged-In Only Bar appears only to authenticated/registered users Member-exclusive offers, account notifications, personalized announcements
Guest Visitors Only Bar appears only to non-logged-in users Sign-up encouragement, first-time visitor offers, registration promotions

User Targeting Strategies

  • Welcome New Visitors: Guest-only message: "Sign up and get 10% off your first order"
  • Member Exclusive: Logged-in only message: "Member-only sale: 30% off today"
  • Sitewide Announcement: All users message: "We're expanding to new countries!"
  • Account Prompts: Guest-only: "Create an account to track your orders"
  • VIP Benefits: Logged-in only: "Earn double points this week!"

Configuring User Targeting

  1. Navigate to the Targeting section
  2. Find User Targeting
  3. Select your targeting option:
    • Choose All Users to show to everyone
    • Choose Logged-In Only to show only to authenticated users
    • Choose Guest Visitors Only to show only to non-logged-in users
  4. Test as both logged-in and guest user to verify behavior
  5. Click Save to apply user targeting

Geographic Targeting

Display your announcement bar based on visitor location using country targeting.

Geographic Targeting (Free)

The free plan supports basic geographic targeting:

  • All Countries: Show bar to visitors from any country
  • Ideal for global announcements and international promotions

Geographic Targeting (Pro)

Pro Feature: Target specific countries to show location-specific announcements, region-specific promotions, or comply with local regulations.

Feature Free Pro
Show on All Countries
Target Specific Countries
Unlimited Countries
Country Groups ✓ (Pro only)

Geographic Targeting Use Cases

  • Region-Specific Sales: Show different promotions to different countries (e.g., EUR pricing for EU)
  • Language Availability: Show announcements when you support a specific language or region
  • Shipping Information: Display relevant shipping costs or delivery times by country
  • Regulatory Compliance: Show cookie notices, privacy policies, or compliance messages to specific regions
  • Currency Notices: Announce currency displays or payment methods available in regions
  • Local Events: Promote region-specific events or partnerships

Configuring Geographic Targeting (Pro)

  1. Upgrade to the Professional plan
  2. Navigate to Targeting section
  3. Find Geographic Targeting (Pro feature)
  4. Choose All Countries to show globally OR select Specific Countries
  5. If selecting specific countries:
    • Type country name or code to search
    • Select countries from the list
    • Add multiple countries by clicking "Add Country"
    • Remove countries with the X button
  6. Review your selected countries
  7. Click Save to apply geographic targeting

Geographic Targeting Examples

Multi-Region E-commerce:

  • US & Canada: "Free shipping on orders $50+"
  • EU: "Free shipping on orders €50+"
  • Rest of World: "Standard international shipping applies"

Language-Specific Launch:

  • Target: France, Belgium, Switzerland
  • Message: "Notre nouveau produit est arrivé!" (French announcement)

Behavioral Targeting

Display your announcement bar based on how long a visitor has spent on your site.

Time-on-Site Targeting

Show your bar only after a visitor has spent a certain amount of time on your website. This is useful for engagement and exit-intent style announcements.

  • Feature: Show bar after X seconds on site
  • Range: 0-999999 seconds (typically 5-300 seconds used)
  • Default: 0 seconds (show immediately)
  • Use Case: Delay announcements to avoid immediate dismissal; engage interested visitors

Time-on-Site Examples

Delay Use Case Message
0 seconds Immediate, critical announcements "Limited time offer: 50% off today!"
5-10 seconds Important notices after initial page view "New feature available: Check out our updated dashboard"
30 seconds Standard engagement threshold "Need help? Chat with our sales team"
60 seconds Intent signals (user is reading/exploring) "Interested in this product? Save 20% with this offer"
120+ seconds Exit-intent style or deep engagement "Still browsing? Complete your purchase with our offer"

Configuring Time-on-Site Targeting

  1. In the Targeting section, find Behavioral Targeting
  2. Locate Show After (seconds) setting
  3. Enter the number of seconds before the bar appears (0-999999)
  4. Consider:
    • Shorter delays (0-10s) for urgent announcements
    • Medium delays (30-60s) for standard promotions
    • Longer delays (120s+) for exit-intent or deep engagement
  5. Test by visiting the page and timing the bar appearance
  6. Click Save to apply behavioral targeting

Combining Targeting Rules

You can combine multiple targeting conditions to create specific audience segments:

Combined Targeting Example

Scenario: Show a VIP member exclusive offer

  • Page Targeting: All Pages
  • Device Targeting: Desktop + Mobile (all devices)
  • User Targeting: Logged-In Only
  • Geographic: All Countries
  • Behavioral: Show After 5 seconds
  • Result: Only logged-in users see the exclusive offer after 5 seconds on any page

Another Example: Regional Mobile Promotion

  • Page Targeting: Specific Pages - "/products", "/collections"
  • Device Targeting: Mobile Only
  • User Targeting: Guest Visitors Only (encourage signup)
  • Geographic: United States + Canada
  • Behavioral: Show After 30 seconds
  • Result: Only mobile users in US/Canada, not logged in, see signup offer on product pages after 30 seconds

Targeting Best Practices

  • Start Broad: Begin with basic targeting (all pages, all devices) and refine as needed
  • Test Thoroughly: Test each targeting combination before activating
  • Monitor Performance: Use analytics to see which targeting segments convert best
  • Avoid Over-Targeting: Too many restrictions may prevent the bar from being seen
  • Iterate: Start with one targeting rule and add complexity based on results
  • Mobile Optimization: Always test mobile-targeted bars on actual mobile devices
  • Device Consistency: Ensure your message and CTA work across all targeted devices
  • User Experience: Respect guest/logged-in distinction for relevant messaging
  • Geographic Considerations: Adapt messages for regional currencies, languages, and cultural relevance (Pro)

Targeting Configuration Checklist

  1. ☐ Select page targeting (all pages vs. specific pages)
  2. ☐ Choose device targeting (desktop, tablet, mobile)
  3. ☐ Set user targeting (all, logged-in, or guests)
  4. ☐ Configure geographic targeting (all countries or specific)
  5. ☐ Set time-on-site delay if needed
  6. ☐ Preview targeting configuration
  7. ☐ Test across different scenarios
  8. ☐ Review and save targeting settings

Related Documentation

Was this article helpful?

Your feedback helps us improve our documentation.

Ready to Boost Your Conversions?

Join 10,000+ WordPress sites already using HashBar to turn visitors into customers. Start free — upgrade when you're ready.

30-day money-back guarantee · No credit card required for free version