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

Get Started
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.
Get Started
Bobby Kane

By Bobby Kane

Dec 26, 2013

Topics:

HubSpot Marketing Strategy
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 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

CMS Hub Starter, business unit add-on, and Stephanie does email validation on a giant database [Hubcast ep. 274]

August 27, 2021
Carina Duffy Carina Duffy

How much HubSpot do I need?

August 17, 2021
John Becker John Becker

New HubSpot CMS Hub Starter Tier Released for Growing Businesses

August 6, 2021
Paul D. Grant Paul D. Grant

5 HubSpot Sales Hub Tips for Assignment Selling

July 23, 2021
Tracey Stepanchuk Tracey Stepanchuk