Last updated

If you are using Hubspot to collect your website data, integrating with VWO will help you collect visitor data of your landing page and also of all variations you create in your VWO tests. You can use this data to compare variations, get deeper insights from your VWO test, and implement changes that boost your conversions.

ATTENTION To enable this integration, you need to ensure that both VWO tracking code and Hubspot tracking code are enabled on your website.
The end-to-end process of integrating ClickTale with VWO involves the following steps:

  1. Enabling Hubspot Integration
  2. Viewing Events

Enabling Hubspot Integration

Follow the the steps below to enable Hubspot Integration:

  1. Sign in to Hubspot Dashboard.
  2. Select the Reports drop-down menu on your hubspot dashboard and then select Events.untitled_drawing
  3. Select Customize JavaScript.


  1. In the displayed text box, paste the following javascript and then click Add New Custom Script.
    <!– Start Visual Website Optimizer Asynchronous Code –>
    <script type='text/javascript'>
    var _vwo_code=(function(){
    var account_id=XXXXXX,
    f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);this.load('//'+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init();
    <!– End Visual Website Optimizer Asynchronous Code –>

Please make sure to enter your correct Account Id in var account_id.

Viewing Events

Go to the Reports section to view the events created in Hubspot to capture your VWO data.untitled_drawing__2_

Was this article helpful?

Thanks for your feedback!
Please email us at to tell us what you were looking for. We'll send the answer to your inbox.

Contact Us / Login

Resources Home