<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic A/B Testing Hubspot Forms with Google Optimize in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211579#M1885</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried to A/B test Hubspot forms by using Google Optimize?&lt;/P&gt;&lt;P&gt;&amp;nbsp;If yes, what best practices would you recommend to follow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extensively A/B test my forms, but I don't want to do it in a clunky way... it seems that I'd have to replace the entire HTML of the form if I want to test different variants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is where I'm testing a few changes now - &lt;A href="https://autotrip.com/buy-now/" target="_blank"&gt;https://autotrip.com/buy-now/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2018-10-13 at 13.33.56.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12440i394FF9D0FAF6AF3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-10-13 at 13.33.56.png" alt="Screen Shot 2018-10-13 at 13.33.56.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2018-10-13 at 13.34.02.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12441iCB1BA9B79E2E6272/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-10-13 at 13.34.02.png" alt="Screen Shot 2018-10-13 at 13.34.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 13 Oct 2018 12:46:03 GMT</pubDate>
    <dc:creator>nunoautotrip</dc:creator>
    <dc:date>2018-10-13T12:46:03Z</dc:date>
    <item>
      <title>A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211579#M1885</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried to A/B test Hubspot forms by using Google Optimize?&lt;/P&gt;&lt;P&gt;&amp;nbsp;If yes, what best practices would you recommend to follow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extensively A/B test my forms, but I don't want to do it in a clunky way... it seems that I'd have to replace the entire HTML of the form if I want to test different variants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is where I'm testing a few changes now - &lt;A href="https://autotrip.com/buy-now/" target="_blank"&gt;https://autotrip.com/buy-now/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2018-10-13 at 13.33.56.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12440i394FF9D0FAF6AF3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-10-13 at 13.33.56.png" alt="Screen Shot 2018-10-13 at 13.33.56.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2018-10-13 at 13.34.02.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12441iCB1BA9B79E2E6272/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-10-13 at 13.34.02.png" alt="Screen Shot 2018-10-13 at 13.34.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 12:46:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211579#M1885</guid>
      <dc:creator>nunoautotrip</dc:creator>
      <dc:date>2018-10-13T12:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211861#M1891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63124"&gt;@nunoautotrip&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I haven't expermimented with this myself, I did find a conversation about Google Optimize and forms on &lt;A href="https://www.en.advertisercommunity.com/t5/Google-Optimize-Experiment/Is-it-possible-to-swap-forms-with-Google-Optimize/td-p/992426" target="_blank"&gt;Google's forum&lt;/A&gt;. It might be a good starting point for considering how to do this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do try this out, let us know how it goes for you!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Jenny&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 10:04:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211861#M1891</guid>
      <dc:creator>jennysowyrda</dc:creator>
      <dc:date>2018-10-16T10:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211914#M1893</link>
      <description>&lt;P&gt;Thanks, Jenny, I'll try to do as they suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:38:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/211914#M1893</guid>
      <dc:creator>nunoautotrip</dc:creator>
      <dc:date>2018-10-16T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/216119#M1993</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to achieve the same thing and I think I just did by making a page with two forms, create two variants in Google Optimize, deleting one form on both&amp;nbsp;variants and set the Weighting of visitors to target at 0% at the original page with two forms.&lt;BR /&gt;&lt;BR /&gt;I guess it will work, but I feel there could be a more efficient way? I think it should be able to just adjust the code to the right HS form, but when I open google optimize HTML editor the HubSpot form 'ID' doesn't correspond with&amp;nbsp;the actual HubSpot form ID which starts with&lt;SPAN&gt;: "a4200b83-****-****-****-************"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="google optimize.png" style="width: 906px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13016iA8513A25DE5E1420/image-size/large?v=v2&amp;amp;px=999" role="button" title="google optimize.png" alt="google optimize.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Anyone tips on how to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 15:36:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/216119#M1993</guid>
      <dc:creator>Marijke</dc:creator>
      <dc:date>2018-11-12T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/244581#M2142</link>
      <description>&lt;P&gt;Did you have any luck?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 00:16:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/244581#M2142</guid>
      <dc:creator>jtron9k</dc:creator>
      <dc:date>2019-01-08T00:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/320693#M3695</link>
      <description>&lt;P&gt;Even though there's an accepted solution here, I found a workaround to use the HubSpot embed forms within Google Optimize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First you'll need to load in the HubSpot form script using Optimize's "Run JavaScript" option (just right click anywhere on the page):&lt;PRE&gt;// Create a script container then load in the URL.&lt;BR /&gt;const hubSpotScript = document.createElement("script");&lt;BR /&gt;hubSpotScript.src="https://js.hsforms.net/forms/v2.js";&lt;BR /&gt;// Append it to the body to execute it.&lt;BR /&gt;&lt;SPAN&gt;document.&lt;/SPAN&gt;&lt;SPAN class="jspropertycolor"&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="jspropertycolor"&gt;appendChild&lt;/SPAN&gt;(hubSpotScript);&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;Next you'll need to create the form. I was only able to get this to fire by adding the window.addEventListener. You can grab your &lt;STRONG&gt;portalId&lt;/STRONG&gt; and &lt;STRONG&gt;formId&lt;/STRONG&gt; from the HubSpot form, itself – just hit "Share" or "Publish" and you can easily find it under the "Embed Code" tab.&lt;PRE&gt;window.addEventListener('load', function () {
    hbspt.forms.create({
        portalId: "yourPortalID",
        formId: "yourFormID",&lt;BR /&gt;        // You can target where you'd like the form to be injected.&lt;BR /&gt;        // &lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/methods/forms/advanced_form_options&lt;/A&gt;
        target: '#yourElement',
    });
});&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:48:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/320693#M3695</guid>
      <dc:creator>damianmakki</dc:creator>
      <dc:date>2020-02-20T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: A/B Testing Hubspot Forms with Google Optimize</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/530037#M6731</link>
      <description>&lt;P&gt;Interesting!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Trying to do the same thing, but can't seem to find a simpler solution. Have you found another solution only using form id?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 13:47:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/A-B-Testing-Hubspot-Forms-with-Google-Optimize/m-p/530037#M6731</guid>
      <dc:creator>KabbeS</dc:creator>
      <dc:date>2021-11-24T13:47:55Z</dc:date>
    </item>
  </channel>
</rss>

