Skip to main content
Services
TAYA

They Ask, You Answer Mastery

A coaching & training program that drives unmatched sales & marketing results.

Sales

Sales Performance Mastery

Improve the competencies and close rates of your sales organization.

Web design

Website Mastery

Web design, development & training for your team.

HubSpot

HubSpot Mastery

Everything you need to get the most from HubSpot.

AI Mastery

AI Enablement Mastery

Unlock the power of AI in all aspects of your revenue operations.

Discover how IMPACT’s services can help take your business to the next level. Book a free 30-minute coaching session Book a free 30-minute coaching session
Learning Center
Learning Center

Learning Center

Free resources to help you improve the way you market, sell and grow your business.

[NEW] The Endless Customers Podcast is now available everywhere. Learn how to earn trust & win more customers in the age of AI. Listen Now Listen Now

Free Assessment: How does your sales & marketing measure up?

Close

Free Assessment:

How does your sales & marketing measure up?
Take this free, 5-minute assessment and learn what you can start doing today to boost traffic, leads, and sales.
Bobby Kane

By Bobby Kane

Dec 26, 2013

Topics:

HubSpot Marketing Strategy
Subscribe
Join 40,000+ sales and marketing pros who receive our weekly newsletter.

Get the most relevant, actionable digital sales and marketing insights you need to make smarter decisions faster... all in under five minutes.

Thanks, stay tuned for our upcoming edition.
HubSpot  |   Marketing Strategy

HubSpot COS Tip: How to Add Personalization to Your Website

Bobby Kane

By Bobby Kane

Dec 26, 2013

HubSpot COS Tip: How to Add Personalization to Your Website

hubspot-personalization-impact-1When HubSpot released the capability to display contacts' properties on your website pages, it drop-kicked just about every jaw in the industry (as well as everyone in attendance at INBOUND '13.)

Now that this powerful, awe-inspiring feature exists, the immediate response is to include it anywhere and everywhere it'll fit.

However, we really wanted to nail our strategy by taking a more subtle approach.

Now don't confuse subtlety with effectiveness.

The HubSpot COS: Subtle Personalization at its Best

Let's take a look at the exact sentence we'll be personalizing:

What would you like to do next?

Now well take that sentence, and if you have a contacts information, that same sentence will show like this:

What would you like to do next, Bobby?

Nice. That's my name, right?

The issue is the comma. It's gramatically correct, and it has to be there. The personalization tag doesn't include that comma so we need some CSS to fix this.

The HTML

What would you like to do next<span class="personalization-name"></span>?

*Notice there's no space between "next" and the <span>

The CSS

.personalization-name:before {
content: ','; margin-right:10px;
} .personalization-name:empty { display:none;
}

**The CSS selector is supported in all major browsers, except IE8 and earlier (of course)

And wa-la!

We solved a couple problems here.

1. Adding the comment when there is a name associated with the contact who's on your site

2. Removing the <span> altogether when a site visitor isn't a lead and you don't have their name. 

I'd love to see and hear about what you guys are doing with the personalization, so leave a comment below!

Free Assessment:

How does your sales & marketing measure up?
Take this free, 5-minute assessment and learn what you can start doing today to boost traffic, leads, and sales.

Related Articles

HubSpot vs WordPress: Which is Better for Your Business Website?

January 11, 2024
Vin Gaeta Vin Gaeta

HubSpot Updates: New Tools and Features to Kick Off 2024

January 8, 2024
Jessica Palmeri Jessica Palmeri

How a Remodeling Company Tamed Its AR Problem with HubSpot

December 18, 2023
John Becker John Becker

HubSpot Update November 2023; New Tools Bring Cautious Excitement

November 8, 2023
Jessica Palmeri Jessica Palmeri

HubSpot Update September 2023: What’s New from INBOUND

September 13, 2023
Jessica Palmeri Jessica Palmeri

HubSpot Pricing: Your Guide to Everything HubSpot Costs

August 24, 2023
Will Smith Will Smith

How To Measure The Trust You've Built With Your Audience (with template)

August 7, 2023
Marcus Sheridan Marcus Sheridan

HubSpot CRM Review — Pros and Cons

July 24, 2023
John Becker John Becker

Track These 5 Inbound Marketing Metrics to See Better Results

October 31, 2022
John Becker John Becker

Can HubSpot Help My Retail Business Grow?

July 31, 2022
Joe Bachir Joe Bachir

Get More Out of HubSpot Reporting With a Third-party Tool

July 9, 2022
John Becker John Becker

4 Keys To An Effective HubSpot Strategy in 2022

April 22, 2022
Carina Duffy Carina Duffy

Using They Ask, You Answer in Customer Service

April 1, 2022
John Becker John Becker

Is The HubSpot Free CRM Actually Free?

February 18, 2022
Joe Bachir Joe Bachir

Ultimate List of HubSpot Pros and Cons

January 8, 2022
Carina Duffy Carina Duffy

How To Optimize Your Marketing Automation Workflows With HubSpot (Tips)

November 12, 2021
Kimberly Marshall Kimberly Marshall

Top 13 Inbound Marketing & HubSpot Solutions Partner Program Agencies for 2022

October 29, 2021
Kimberly Marshall Kimberly Marshall

HubSpot Sales Hub: 18 Things Every Sales Rep Should Know How to Do (+ Videos)

October 28, 2021
John Becker John Becker

INBOUND 2021 Recap: Takeaways, Speakers, and Lessons Learned

October 25, 2021
John Becker John Becker

Need a HubSpot Admin? Here’s How to Find and Hire the Right Candidate

October 22, 2021
John Becker John Becker

How to Get Sales Reps to Use the HubSpot CRM

October 18, 2021
Kimberly Marshall Kimberly Marshall

HubSpot and Data Privacy: How to Collect Contacts the Right Way

October 4, 2021
John Becker John Becker

INBOUND is Fast Approaching, Google Leads are Syncing, and Workflow Actions are Placeholding [Hubcast 275]

September 23, 2021
Carina Duffy Carina Duffy

How to Know When You’ve Outgrown HubSpot Sales Hub Starter

September 23, 2021
John Becker John Becker

How to Get the Most Out of Your 2-Week HubSpot Free Trial

September 13, 2021
John Becker John Becker