<?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 Re: Capterra PPC Conversion Tracking in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402918#M20740</link>
    <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;! I tried to play a bit with the Engagements API but it looks like there is no way to trigger the tracking code after the meeting is booked, like you suggested with the onFormSubmit function&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 18:15:45 GMT</pubDate>
    <dc:creator>Vhuang</dc:creator>
    <dc:date>2021-01-25T18:15:45Z</dc:date>
    <item>
      <title>Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/344668#M17013</link>
      <description>&lt;P&gt;Hey all! Long time listener, first-time caller &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up click tracking with Capterra and I've run into some challenges. Their preferred method is to insert code on page load when redirected to the "thank you" page after conversion. My preference is not to redirect and instead just display the thank you message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They provide sample code for my preferred method:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;

    // Replace the text on the right hand side of the '=' with the id of your button.
    // Make sure you do not remove the single quotes.

    var buttonId = 'submitFormButton' // Change this

    // DO NOT CHANGE THE CODE BELOW
    function trackingListener() {
      var capterra_vkey = '5d2b6f627d0237c03299f0be0800f1c5',
      capterra_vid = '2141917',
      capterra_prefix = (('https:' == document.location.protocol)
        ? 'https://ct.capterra.com' : 'http://ct.capterra.com');

      var ct = document.createElement('script');
      ct.type = 'text/javascript';
      ct.async = true;
      ct.src=capterra_prefix + '/capterra_tracker.js?vid='
        + capterra_vid + '&amp;amp;vkey=' + capterra_vkey;

      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(ct, s);
    };

    var button = document.getElementById(buttonId);
    button.addEventListener(
      'click',
      trackingListener
    );
  &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;I don't see a button ID and when I tried to use the form id on submit, I wasn't successful. Any suggestions on what other variable I could use?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should also note I'm using Google Tag Manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Brian&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 16:35:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/344668#M17013</guid>
      <dc:creator>casebook_brian</dc:creator>
      <dc:date>2020-06-05T16:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/346426#M17033</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128588"&gt;@casebook_brian&lt;/a&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for the information provided.I'll tag a few experts that can share their experience with you. &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/67091"&gt;@prosa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;any thoughts you would like to share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128588"&gt;@casebook_brian&lt;/a&gt;&amp;nbsp;?&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sharon&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 09:16:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/346426#M17033</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2020-06-12T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/346445#M17038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128588"&gt;@casebook_brian&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could embed your form using the Hubspot HTML embed, which allows you to run scripts on submission. The documentation for that is &lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might look something like this for you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
  portalId: "[PORTAL ID]",
  formId: "[FORM ID]",
    onFormSubmit: function($form){
        var capterra_vkey = '5d2b6f627d0237c03299f0be0800f1c5',
        capterra_vid = '2141917',
        capterra_prefix = (('https:' == document.location.protocol)
          ? 'https://ct.capterra.com' : 'http://ct.capterra.com');

        var ct = document.createElement('script');
        ct.type = 'text/javascript';
        ct.async = true;
        ct.src=capterra_prefix + '/capterra_tracker.js?vid='
          + capterra_vid + '&amp;amp;vkey=' + capterra_vkey;

        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ct, s);
    }
  });
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said you are using GTM, you can also set up events that trigger on form submission through GTM, and then add the Capterra script as a custom HTML tag. There's a step by step guide to setting that up &lt;A href="https://nettlesnet.com/track-hubspot-forms-with-google-tag-manager-analytics/" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one event to track every Hubspot form submission in GTM and GA. However, the event doesn't get the name of the submitted form, just the GUID, so if you want the actual name of the form to appear in your events in GA you'll have to set up separate events for each form with the name in GTM. It's mostly the same process, just some extra steps.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 12:52:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/346445#M17038</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2020-06-12T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402857#M20731</link>
      <description>&lt;P&gt;Thanks for the answer&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I'm also trying to trigger the Capterra tracking script to load but I would like the script to load after a Hubspot Meeting submission. I could not find any API documentation related to Hubspot meetings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you guys have any idea how I could do that ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Valentin&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:25:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402857#M20731</guid>
      <dc:creator>Vhuang</dc:creator>
      <dc:date>2021-01-25T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402884#M20734</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/70765"&gt;@Vhuang&lt;/a&gt;&amp;nbsp;the &lt;A href="https://legacydocs.hubspot.com/docs/methods/engagements/engagements-overview" target="_blank" rel="noopener"&gt;Engagements API&lt;/A&gt; is the one you want.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:15:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402884#M20734</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2021-01-25T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402918#M20740</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;! I tried to play a bit with the Engagements API but it looks like there is no way to trigger the tracking code after the meeting is booked, like you suggested with the onFormSubmit function&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 18:15:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/402918#M20740</guid>
      <dc:creator>Vhuang</dc:creator>
      <dc:date>2021-01-25T18:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Capterra PPC Conversion Tracking</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/403202#M20750</link>
      <description>&lt;P&gt;onFormSubmit is a method for Hubspot forms, not Meetings. However, you could try it the other way round: use a Hubspot form (with a start date field) with the above code from my comment, and&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement" target="_blank" rel="noopener"&gt;create a meeting&lt;/A&gt;&amp;nbsp;using the Engagements API in the onFormSubmit method.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:36:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Capterra-PPC-Conversion-Tracking/m-p/403202#M20750</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2021-01-26T14:36:58Z</dc:date>
    </item>
  </channel>
</rss>

