Back to Learning Center
Subscribe
Join 40,000+ sales and marketing pros who receive our weekly insights, tips, and best practices.
Thank you! You have been subscribed.
Learning Center
Learning Center
Close
The IMPACT Learning Center

Free resources to help you master inbound marketing and They Ask, You Answer

Access the Learning Center

Access the Learning Center

Access the Learning Center
learning_center_grey__What is They Ask, You Answer-v2-black

What is They Ask, You Answer

What is <span>They Ask, You Answer</span>
Articles, Podcasts, & Updates

Articles, Podcasts, & Updates

Articles, Podcasts, <span>& Updates</span>
Free Courses & Certifications

Free Courses & Certifications

Free Courses & <span>Certifications</span>
On-Demand Keynotes & Sessions

On-Demand Keynotes & Sessions

On-Demand <span>Keynotes & Sessions</span>
Events
Events
Close
IMPACT+ Membership
IMPACT+ Membership
Close
Services
Services
Close
Navigation_8_2021_taya

They Ask, You Answer Coaching & Training

They Ask, You Answer Coaching & Training
They Ask, You Answer Workshop

They Ask, You Answer Workshop

They Ask, You Answer Workshop
Navigation_8_2021_workshop

Inbound Marketing Services

Inbound Marketing Services
Navigation_8_2021_website design - monitor

Website Design & Development

Website Design & Development
Navigation_8_2021_hubspot implementation

HubSpot Training & Implementation

HubSpot Training & Implementation
Navigation_8_2021_virtual selling

Virtual Sales
Training

Virtual Sales <br>Training
Navigation_8_2021_swell - paid ads

Paid Search & Social Services

Paid Search & Social Services
Become a Certified Coach
Become a Certified Coach
Close
HubSpot

HubSpot COS Tip: How to Add Personalization to Your Website

By Bobby Kane

HubSpot COS Tip: How to Add Personalization to Your Website Blog Feature

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.

NowFriend 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!

Topics:

HubSpot
Personalization
Published on December 26, 2013

Recent Articles

INBOUND 2021 Recap: Takeaways, Speakers, and Lessons Learned

By John Becker on October 25, 2021
7 min read

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

By John Becker on October 22, 2021
5 min read

How to Get Sales Reps to Use the HubSpot CRM

By Kimberly Marshall on October 18, 2021
4 min read

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

By John Becker on October 4, 2021
4 min read

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

By Carina Duffy on September 23, 2021
4 min read

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

By John Becker on September 23, 2021
4 min read

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

By John Becker on September 13, 2021
5 min read

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

By Carina Duffy on August 27, 2021
3 min read

How much HubSpot do I need?

By John Becker on August 17, 2021
4 min read

New HubSpot CMS Hub starter tier released for growing businesses

By Paul D. Grant on August 6, 2021
4 min read

HubSpot CRM review (updated for 2021)

By Kimberly Marshall on July 27, 2021
8 min read

5 HubSpot Sales Hub tips for assignment selling

By Tracey Stepanchuk on July 23, 2021
7 min read

Custom email nurture reporting, a map hack, and are pop-up forms a thing of the past? [Hubcast 273]

By Carina Duffy on July 22, 2021
3 min read

Get your sales team using your CRM platform in 5 easy steps

By John Becker on July 13, 2021
6 min read

HubSpot vs. ActiveCampaign: a head-to-head comparison

By Tracey Stepanchuk on July 13, 2021
5 min read

Close rate reports, custom surveys, and Apple Mail ruining everything for email marketers [Hubcast 272]

By Carina Duffy on June 24, 2021
3 min read

Is your inbound marketing working? Track these 4 metrics to evaluate your progress

By John Becker on June 15, 2021
5 min read

Operations Hub hot takes and college degrees [Hubcast 271]

By Carina Duffy on May 27, 2021
2 min read

4 keys to an effective HubSpot strategy in 2021

By Carina Duffy on May 7, 2021
6 min read

Think you’re paying too much for HubSpot? Here’s how to get your money’s worth

By John Becker on May 5, 2021
5 min read

I’m hiring a digital marketer; Do they need HubSpot experience?

By John Becker on May 3, 2021
4 min read

Do I need to hire a HubSpot specialist, or can someone on my team handle it?

By John Becker on April 30, 2021
4 min read

Introducing the first annual HubSpot WishFest 2021 [Hubcast 270]

By Carina Duffy on April 27, 2021
4 min read

6 ways to get the most out of HubSpot Campaigns

By Carina Duffy on April 26, 2021
7 min read

What is the new HubSpot Operations Hub?

By Liz Moorehead on April 23, 2021
2 min read