Is it possible to display contact value in hubspot website


I am looking for displaying contact value in hubspot website

Basically, when we enter customer’s email, we want to get and display customer’s first name, last name and so. However, when I tried to use to get json value, it won’t get me any value when I use the following code:

<script type="text/javascript" src=""></script>
  <script type="text/javascript">
function getJSONP(){
    type: "get",
    async: false,
    url: "",
    dataType: "jsonp",

Is there any way to display contact value in hubspot webpage?

Thanks advanced for any help.


HI @wlyu9248,

This is available out of the box on any HubSpot hosted pages using personalization tokens. No API calls needed. Here is a step by step guide on how to add them to your page



Thanks zwolfson for pointing me to the right direction. I wonder if contact value (personalization tokens) can be comparable. It seems personalization tokens generate an image element. Can the value be compared by javascript or jquery, or other methods that identifies contact value as var element? For specific, I want to achieve something like the following script:

  <script type="text/javascript">
      var approved={{contact.fund_approved}}
      if (approved)
          alert("Congratulations, your fund is approved"}
          alert("Sorry, your fund is declined"}

Thanks again


@wlyu9248, personalization tokens will just show whatever the value of the contact property, it shouldn’t be an image. You definitely could use personalization tokens as you are in the example code you posted.