Skip to content
Integrations

Add the HubSpot Visualforce window to your Salesforce page layouts

Last updated: March 30, 2022

Applies to:

Marketing Hub Professional, Enterprise
Sales Hub Professional, Enterprise
Service Hub Professional, Enterprise
Operations Hub Professional, Enterprise
CMS Hub Professional, Enterprise

The HubSpot Visualforce window is an iframe that displays a summary of the interactions a Salesforce lead or contact has had in HubSpot. The window shows the contact's HubSpot contact record timeline activities such as form submissions, marketing email sends, HubSpot Score, and includes a link to their HubSpot contact record. In the Visualforce window you can use the filter to filter the timeline activities that display.

You can add the HubSpot Visualforce window to your Salesforce lead and contact page layouts:

Please note: to view the Visualforce window content, your Salesforce users need to be imported directly into HubSpot using HubSpot's Create user function and will need a minimum of contacts view access in HubSpot.

The Visualforce window can be added to contact, account, and opportunity layouts in Salesforce.

For the Visualforce page to display information on a Salesforce account or opportunity, the account/opportunity must be syncing with a HubSpot company/deal and that company or deal must have an associated, syncing contact. Timeline information from the corresponding HubSpot company or deal record will not be shown in the Visualforce window. Instead, information from the most recently synced associated contact will be displayed in the window.

Salesforce Classic

  • Navigate to your Salesforce account.
  • In the upper right, click Setup (or [Your Name] > Setup).
  • To add the Visualforce window to your lead page layouts, in the Build section in the left sidebar menu, navigate to Customize > Leads > Page Layouts.build-lead-page-layout-salesforce
  • Or, to add the Visualforce window to a contact page layout, in the Build section in the left sidebar menu, navigate to Customize > Contacts > Page Layouts.build-contact-page-layout
  • You'll see a list of page layouts. Click Edit next to a page layout's name. 

Please note: if you have multiple page layouts, you must add the Visualforce window to each page layout you want to display the window on.

  • Click the Section item in the toolbar and drag and drop it into the desired location on the page layout.

  • In the dialog box, enter a Section Name (e.g., HubSpot Information). Under Layout, select 1-Column. Click OK.
  • In the toolbar's left sidebar menu, select Visualforce Pages.
  • Click the HubSpot Lead Intelligence or HubSpot Contact Intelligence item in the toolbar and drag and drop it into the newly-created section on the page layout.
Add the visualforce itself - scroll down, click Visualforce Pages in the toolbar above > drag HubSpot Lead Intelligence item into the HubSpot Intelligence section
  • Hover over the new HubSpot Lead Intelligence or HubSpot Contact Intelligence Visualforce window and click the wrench icon in the top right.
  • In the dialog box, change the window Height to 315, then click OK.

  • In the top left of the toolbar, click Save to apply your layout changes.
  • Navigate to a Salesforce lead or contact record to view the HubSpot Visualforce window.

Repeat these steps for any other lead or contact page layouts you want to add the HubSpot Visualforce window to.

 

Lightning Experience

  • Navigate to your Salesforce account.
  • In the upper right, click the gear icon settings and select settings Setup.
  • In the left sidebar menu, in the Platform Tools section, navigate to Objects and Fields > Object Manager.object-manager-lightening-experience
  • In the list of objects, click Lead or Contact.
  • In the left sidebar menu, navigate to Page Layouts.
  • Click the name of a page layout.

Please note: if you have multiple page layouts, you must add the Visualforce window to each page layout you want to display the window on.

  • Click the Section item in the toolbar and drag and drop it into the desired location on the page layout.

  • In the dialog box, enter a Section Name (e.g., HubSpot Information). Under Layout, select 1-Column. Click OK.
  • In the toolbar's left sidebar menu, select Visualforce Pages.
  • Click the HubSpot Lead Intelligence or HubSpot Contact Intelligence item in the toolbar and drag and drop it into the newly-created section on the page layout.
  • Hover over the new HubSpot Lead Intelligence or HubSpot Contact Intelligence Visualforce window and click the wrench icon in the top right.
  • In the dialog box, change the window Height to 315, then click OK.

  • In the top left of the toolbar, click Save to apply your layout changes.
  • Navigate to a Salesforce lead or contact record and click the Details tab to view the HubSpot Visualforce window.

Please note: the HubSpot Visualforce window can only be added as a section on the Details tab in Lightning Experience. The window cannot be added to any custom tabs or pages.

  • Click Filter to view a list of filters that you can segment the contact information with.

sf-visualforce  

Repeat these steps for any other lead or contact page layouts you want to add the HubSpot Visualforce window to.

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.