HubSpot Custom Module Boilerplate Code Snippet
Category: Code Snippets
Below is a some boilerplate code to use when creating a custom module inside HubSpot CMS. {# HubSpot uses different prefixes so this just gets the number module_######### widget_######### outputs just the number #} {% set instanceID = name[7:] %} {{ instanceID }} <div class=”module-class” id=”module{{instanceID}}”> <div class=”row-fluid”> <div class=”span6″>A</div> <div class=”span6″>B</div> </div> </div> {% […]
How to Use HubSpot: 2026 Beginner’s Tutorial & Step-by-Step Guide
Category: Articles
HubSpot CRM is a cloud-based platform that helps businesses track leads, automate marketing, and provide excellent customer service. Designed for ease of use, it is ideal for businesses with no prior CRM experience. This 2026 guide provides a quick tutorial on how HubSpot works and its core features. Key Takeaways: Integrates marketing, sales, and service […]
Set Variable Values in a Loop and Use Elsewhere HubL HubSpot
Category: Code Snippets
When customizing a custom HubSpot quote template you may want to know what line items are present in the quote. You can then create conditional logic with a set of known values. The only problem is when you set a variable inside a loop it is not able to be referenced outside of the loop […]
How To Create a New CSS Stylesheet for HubSpot
Category: Articles
For those utilizing HubSpot’s content management system (CMS), the ability to create new CSS stylesheets grants users immense flexibility in customizing the look and feel of their website. Whether it’s making minor tweaks to existing styles or implementing a complete overhaul of the site’s design, having control over CSS stylesheets is essential for achieving the […]
How to Add Terms & Conditions to a Sales Quote in HubSpot?
Category: Articles
The purchase terms field in HubSpot’s Quotes tool serves as a critical feature for defining the terms and conditions of a sale, helping businesses set clear expectations with clients directly within the quote. This article explores the purpose of this field, showing how it enhances transparency and trust by outlining payment terms, delivery schedules, and […]
HubSpot Related Posts Based on Tag Module [Code Snippet]
Category: Code Snippets
The code snippet below lists related posts based on the current post tags used. The HubSpot developer docs has a code example using a Javascript formatter but I was unable to get this to resize the featured image. So I created the code below to use a HubL macro instead. HubSpot Module HTML + HubL […]
How to Increase Data Retention to 14 Months Instead of the Default 2 Months in GA4
Category: Articles
Google Analytics 4 has the option to create custom reports called explorations. But you might notice when creating a custom report, you can only see data for the past two months. This is surprising because the old UA analytics let you go back in time to 26 months. This is an important difference, and if […]
Why Your GA4 Traffic Data May Not Match HubSpot
Category: Common Questions
Now that Google Analytics 4 (GA4) is officially here. I wanted to share a hidden feature causing confusion when comparing website traffic reports in HubSpot vs. what was being shown in GA4. For a span of a few days, there was a spike in direct traffic in HubSpot, but in GA4, I did not see […]
New Page Templates and Modules added to the Industrial Pro HubSpot Theme
Category: Newsletter
I’ve recently added new features to my Industrial Pro theme for HubSpot. The overall goal of the updates was to make it better support manufacturing services and make it easier to build common pages most industrial companies have. Theme Feature Updates Include: New Page Templates Home 2The homepage template is great for metal fabricators and machine […]
HubSpot Email Banner Size Guide: Dimensions & Best Practices [2026]
Category: Common Questions
Last Updated: January 2026 | Guidelines for HubSpot & General Email Clients Optimizing your email design starts with the right dimensions, ensuring your brand looks professional and scales perfectly across every device. Quick Specs: HubSpot Email Header Size (2026) ✅ Recommended Dimensions: 600px width × 200px height Max File Size: Under 1MB (aim for < […]