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
Export popular pages report from Google Analytics
Extract product codes, add image URLs, assign ranks
GAS periodically updates HubDB
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
| order_num | hs_name | product_code | image_url | product_url |
|---|---|---|---|---|
| 1 | Popular Product A | PROD-001 | https://cdn.../a.jpg | https://shop.../a |
| 2 | Popular Product B | PROD-002 | https://cdn.../b.jpg | https://shop.../b |
| 3 | Popular Product C | PROD-003 | https://cdn.../c.jpg | https://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
| Category | Sheet Name | HubDB Table ID | Purpose |
|---|---|---|---|
| Outerwear | Jackets | 55555555 | Outerwear category rankings |
| Footwear | Shoes | 66666666 | Footwear category rankings |
| Accessories | Accessories | 77777777 | Accessories rankings |
| Sale Items | Sale | 88888888 | Popular 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
| hs_name | start_date | end_date | banner_url | link_url | is_active |
|---|---|---|---|---|---|
| Spring Sale | 2024-03-01 | 2024-03-31 | https://.../spring.jpg | /sale/spring | true |
| Members Only | 2024-04-01 | 2024-04-30 | https://.../member.jpg | /member | true |
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 Master (ERP / POS)
CSV import / API integration
Product Master Table
Auto-generate pages per HubDB row
HubDB Dynamic Pages Feature
HubDB has a "Dynamic Pages" feature that auto-generates pages per row:
hs_pathcolumn becomes the URL path- Template displays HubDB data
- Adding products automatically creates pages
Available Data
| Data Field | Usage |
|---|---|
| Product Name | Page title, headings |
| Description | Body content |
| Price | Price display |
| Image URL | Product images |
| Category | Breadcrumbs, related products |
| Stock Status | Inventory 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
| hs_name | category | question | answer | order |
|---|---|---|---|---|
| Returns | Orders | Can I return items? | Returns accepted within 7 days... | 1 |
| Shipping | Delivery | How much is shipping? | Free shipping on orders over $50... | 2 |
Operational Guidelines
Sync Frequency Design
| Data Type | Update Frequency | Sync Timing |
|---|---|---|
| Access Rankings | Daily | Auto-run nightly |
| Store Information | Weekly | Weekly or manual on changes |
| Campaigns | As needed | Manual when setting up campaigns |
| Product Master | Daily | Aligned 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.