HubDB Use Cases

Practical applications of HubDB × Spreadsheet sync including rankings, store listings, and product catalog integration

HubSpotHubDBRankingsStore ListingsUse Cases
5 min read

HubDB Application Ideas

By connecting spreadsheets to HubDB, you can dynamically display various data on your HubSpot site.

Here are specific use case examples.

Case 1: Access Rankings Display

Display popular product rankings on your blog based on pageview data from Google Analytics.

Data Flow

Access Ranking Sync Flow
1. Get Data from GA4

Export popular pages report from Google Analytics

2. Process in Spreadsheet

Extract product codes, add image URLs, assign ranks

3. Sync to HubDB

GAS periodically updates HubDB

4. Display on Blog

HubL module shows latest rankings

Benefits

  • Rankings stay current even on older blog posts
  • Automatically showcase "trending products"
  • No daily manual updates needed

Spreadsheet Structure Example

1
hs_namePopular Product A
product_codePROD-001
image_urlhttps://cdn.../a.jpg
product_urlhttps://shop.../a
2
hs_namePopular Product B
product_codePROD-002
image_urlhttps://cdn.../b.jpg
product_urlhttps://shop.../b
3
hs_namePopular Product C
product_codePROD-003
image_urlhttps://cdn.../c.jpg
product_urlhttps://shop.../c

Case 2: Store/Location Listings

Centrally manage multiple store or branch office information and display on your website.

Use Scenarios

  • Link each store's blog to its dedicated HubDB table
  • Show store-specific product rankings
  • Dynamically display addresses and business hours

Multi-Table Management

GAS configuration example for separate tables per store:

const mappings = [
  { sheet: 'Downtown Store', tableId: '11111111' },
  { sheet: 'Midtown Store', tableId: '22222222' },
  { sheet: 'Uptown Store', tableId: '33333333' },
  { sheet: 'Suburb Store', tableId: '44444444' },
];

Benefits

  • Store managers simply update their spreadsheet
  • Centralized store information management
  • Adding new stores just requires adding a table

Case 3: Category-Specific Rankings

Create rankings per product category and display on category blogs.

Configuration Example

Outerwear
Sheet NameJackets
HubDB Table ID55555555
PurposeOuterwear category rankings
Footwear
Sheet NameShoes
HubDB Table ID66666666
PurposeFootwear category rankings
Accessories
Sheet NameAccessories
HubDB Table ID77777777
PurposeAccessories rankings
Sale Items
Sheet NameSale
HubDB Table ID88888888
PurposePopular sale products

Benefits

  • Display optimal rankings on specialized blog posts
  • Higher relevance between article content and rankings
  • Expected improvement in conversion rates

Case 4: Campaign & Sale Information

Manage limited-time campaign information in spreadsheets and display site-wide.

Data Structure

Spring Sale
start_date2024-03-01
end_date2024-03-31
banner_urlhttps://.../spring.jpg
link_url/sale/spring
is_activetrue
Members Only
start_date2024-04-01
end_date2024-04-30
banner_urlhttps://.../member.jpg
link_url/member
is_activetrue

Display Control with HubL

{% set campaigns = hubdb_table_rows(tableid) %}
{% set today = local_dt|datetimeformat('%Y-%m-%d') %}

{% for campaign in campaigns %}
  {% if campaign.is_active == 'true' %}
    {% if campaign.start_date <= today and today <= campaign.end_date %}
      <a href="{{ campaign.link_url }}">
        <img src="{{ campaign.banner_url }}" alt="{{ campaign.hs_name }}">
      </a>
    {% endif %}
  {% endif %}
{% endfor %}

Benefits

  • Automatic campaign start/end control
  • Banner updates complete in spreadsheet
  • Past campaign data preserved as history

Case 5: Product Catalog Integration

Sync product master data from core systems to HubDB via spreadsheets and dynamically generate product information pages.

Data Flow

Product Catalog Integration
Core Systems

Product Master (ERP / POS)

Spreadsheet

CSV import / API integration

HubDB

Product Master Table

Product Detail Pages (Dynamic Pages)

Auto-generate pages per HubDB row

HubDB Dynamic Pages Feature

HubDB has a "Dynamic Pages" feature that auto-generates pages per row:

  • hs_path column becomes the URL path
  • Template displays HubDB data
  • Adding products automatically creates pages

Available Data

Product Name
UsagePage title, headings
Description
UsageBody content
Price
UsagePrice display
Image URL
UsageProduct images
Category
UsageBreadcrumbs, related products
Stock Status
UsageInventory display, button control

Case 6: FAQ Database

Manage FAQs in spreadsheets and dynamically display on FAQ pages.

Benefits

  • Customer support team directly edits FAQs
  • Category-based filtering display
  • Integration with search functionality

Data Structure Example

Returns
categoryOrders
questionCan I return items?
answerReturns accepted within 7 days...
order1
Shipping
categoryDelivery
questionHow much is shipping?
answerFree shipping on orders over $50...
order2

Operational Guidelines

Sync Frequency Design

Access Rankings
Update FrequencyDaily
Sync TimingAuto-run nightly
Store Information
Update FrequencyWeekly
Sync TimingWeekly or manual on changes
Campaigns
Update FrequencyAs needed
Sync TimingManual when setting up campaigns
Product Master
Update FrequencyDaily
Sync TimingAligned with core system integration

Data Quality Management

  • Set validation rules in spreadsheet
  • Skip rows with empty required fields
  • Validate image URL formats

Multi-User Operations

  • Manage edit permissions
  • Record update history
  • Monitor sync execution logs

Summary

HubDB × Spreadsheet sync use cases:

  • Access Rankings: Auto-display current popular products
  • Store Listings: Centrally manage each location's info
  • Category Rankings: Optimal rankings for specialized blogs
  • Campaign Info: Date-controlled dynamic banners
  • Product Master: Integration with core systems
  • FAQ: Support team directly edits content

Use familiar spreadsheet tools as the starting point for dynamic HubSpot site content management.

Start with a small use case and gradually expand your applications.

Related Topics