<?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: Identify user on the survey service in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/524807#M48622</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've created a Feedback survey in the Service hub, not a conversation.&lt;/P&gt;&lt;P&gt;The survey is a simple CSAT as per the options hubspot provides (so no HubL involved at all).&lt;/P&gt;&lt;P&gt;The problem is basically that the customer never meets a hubspot-generated form on the client anywhere on the way, so the Hubspot cookie contains no identification of the visitor to my platform.&lt;/P&gt;&lt;P&gt;Unfortunately I cannot provide access to my platform, however what we are trying to accomplish is that when the page loads and the feedback survey js is loading - it will already have the visitor's identity so that when I set "Audience" rules they can actually apply based on the single visitor to the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've so far attempted 2 methods to passing on this identification to the form:&lt;/P&gt;&lt;P&gt;1. Conversation API identification.&lt;/P&gt;&lt;P&gt;2. Tracking API identification (by creating a custom event upon registration and passing the contact id ('vid') on the identification of the event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set the customer's identity on the Hubspot Cookie without the customer filling out a hubspot-generated form?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also tagging&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/279432"&gt;@StefanPopescu&lt;/a&gt;&amp;nbsp;our developer who can work with you and provide code samples.&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 15:25:19 GMT</pubDate>
    <dc:creator>DB1434</dc:creator>
    <dc:date>2021-11-11T15:25:19Z</dc:date>
    <item>
      <title>Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/522213#M48512</link>
      <description>&lt;P&gt;Hi. I'm trying to implement a survey on my website.&lt;/P&gt;&lt;P&gt;I want the survey to know before loading what is the identity of the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I implemented something like that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB1434_1-1636280204353.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/53386i0A539BB6A3D765CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DB1434_1-1636280204353.png" alt="DB1434_1-1636280204353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's happening before HubSpot's code is loaded.&lt;/P&gt;&lt;P&gt;But, the result is that after the user fill's up the survey - He is asked about his Email:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB1434_2-1636280322321.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/53387i7C596CF041A2FD6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DB1434_2-1636280322321.png" alt="DB1434_2-1636280322321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This means - as I can understand it - that the survey didn't get my Identity.&lt;/P&gt;&lt;P&gt;Is there any way to make it know the uset's email?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 14:19:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/522213#M48512</guid>
      <dc:creator>DB1434</dc:creator>
      <dc:date>2021-11-07T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523118#M48513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267021"&gt;@DB1434&lt;/a&gt;&amp;nbsp;, thank you for your post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to tag in&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp;who have shared great knowledge around custom development. Would you be able to weigh in here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:11:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523118#M48513</guid>
      <dc:creator>natsumimori</dc:creator>
      <dc:date>2021-11-09T06:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523196#M48518</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267021"&gt;@DB1434&lt;/a&gt;&amp;nbsp;, let me start by saying I don't know, but I'd like to help out. Are you using Feeback Surveys or Conversations to build this survey?&amp;nbsp; I'm guessing HubL isn't an option here... {{ contact.email }}?&amp;nbsp; Could you share a link to the page?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:10:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523196#M48518</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-11-09T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523761#M48553</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 02:06:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/523761#M48553</guid>
      <dc:creator>natsumimori</dc:creator>
      <dc:date>2021-11-10T02:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/524807#M48622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've created a Feedback survey in the Service hub, not a conversation.&lt;/P&gt;&lt;P&gt;The survey is a simple CSAT as per the options hubspot provides (so no HubL involved at all).&lt;/P&gt;&lt;P&gt;The problem is basically that the customer never meets a hubspot-generated form on the client anywhere on the way, so the Hubspot cookie contains no identification of the visitor to my platform.&lt;/P&gt;&lt;P&gt;Unfortunately I cannot provide access to my platform, however what we are trying to accomplish is that when the page loads and the feedback survey js is loading - it will already have the visitor's identity so that when I set "Audience" rules they can actually apply based on the single visitor to the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've so far attempted 2 methods to passing on this identification to the form:&lt;/P&gt;&lt;P&gt;1. Conversation API identification.&lt;/P&gt;&lt;P&gt;2. Tracking API identification (by creating a custom event upon registration and passing the contact id ('vid') on the identification of the event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set the customer's identity on the Hubspot Cookie without the customer filling out a hubspot-generated form?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also tagging&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/279432"&gt;@StefanPopescu&lt;/a&gt;&amp;nbsp;our developer who can work with you and provide code samples.&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:25:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/524807#M48622</guid>
      <dc:creator>DB1434</dc:creator>
      <dc:date>2021-11-11T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/525529#M48681</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267021"&gt;@DB1434&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/279432"&gt;@StefanPopescu&lt;/a&gt;&amp;nbsp; This may have been what you were referring to in #2 but have you tried this?&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor&lt;/A&gt;&amp;nbsp;... seems like the example in the code block is exactly what you're looking for.&amp;nbsp; Although, I don't know how you're identifying the visitor's email address.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 18:45:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/525529#M48681</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-11-12T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/526270#M48711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp;thanks for your answer, this is exactly what we did:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_hsq&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;_hsq&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;_hsq&lt;/SPAN&gt;&lt;SPAN&gt; || [];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;_hsq&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;push&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;"identify"&lt;/SPAN&gt;&lt;SPAN&gt;,{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;email:&lt;/SPAN&gt; &lt;SPAN&gt;_form&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;email&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;_hsq&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;push&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;"trackEvent"&lt;/SPAN&gt;&lt;SPAN&gt;, {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;id:&lt;/SPAN&gt; &lt;SPAN&gt;"Registration"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But this did not solved our issue. Still the visitor is not identified. What else should we check/do here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Stefan.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 09:57:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/526270#M48711</guid>
      <dc:creator>StefanPopescu</dc:creator>
      <dc:date>2021-11-15T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Identify user on the survey service</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/526326#M48716</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/279432"&gt;@StefanPopescu&lt;/a&gt;&amp;nbsp;, it seems like the survey is probably loading before you are identifying the visitor.&amp;nbsp; Do you agree with that?&amp;nbsp; Possible to identify the visitor and then&amp;nbsp;reload the tracking code?&amp;nbsp; In the tracking code api overview HubSpot lists an example for tracking in single-page apps.&amp;nbsp; It's not for your specific use case but it does seem relevant.&amp;nbsp; You may be doing this already but are you loading the tracking code after you're identifying the visitor ... and with the async/defer parameters?&lt;BR /&gt;&lt;BR /&gt;I'm referencing the code block in the "Tracking in single-page applications" here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/events/tracking-code" target="_blank"&gt;https://developers.hubspot.com/docs/api/events/tracking-code&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 12:27:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Identify-user-on-the-survey-service/m-p/526326#M48716</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-11-15T12:27:44Z</dc:date>
    </item>
  </channel>
</rss>

