<?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 Create Update Contact via Google GTM in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1016945#M75321</link>
    <description>&lt;P&gt;There are datalayers I need to read on my site, and I want to create a user with these datalayers, emails,first name, last name etc.&lt;BR /&gt;&lt;BR /&gt;How can I do this with Google Tag Manager&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 12:25:35 GMT</pubDate>
    <dc:creator>OYeni</dc:creator>
    <dc:date>2024-07-26T12:25:35Z</dc:date>
    <item>
      <title>Create Update Contact via Google GTM</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1016945#M75321</link>
      <description>&lt;P&gt;There are datalayers I need to read on my site, and I want to create a user with these datalayers, emails,first name, last name etc.&lt;BR /&gt;&lt;BR /&gt;How can I do this with Google Tag Manager&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:25:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1016945#M75321</guid>
      <dc:creator>OYeni</dc:creator>
      <dc:date>2024-07-26T12:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Update Contact via Google GTM</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1016988#M75328</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://gamingcy.com/en-us/destiny-2-boost" target="_blank" rel="noopener"&gt;@OYeni&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;There are datalayers I need to read on my site, and I want to create a user with these datalayers, emails,first name, last name etc.&lt;BR /&gt;&lt;BR /&gt;How can I do this with Google Tag Manager&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You'll need to set up tags and triggers that read the data layer variables and send them to your desired endpoint, such as a CRM system. First, ensure your data layer is correctly set up on your website and contains the necessary information, such as email, first name, and last name. An example data layer might look like this:&lt;BR /&gt;window.dataLayer = window.dataLayer || [];&lt;BR /&gt;window.dataLayer.push({&lt;BR /&gt;'event': 'userData',&lt;BR /&gt;'userEmail': 'user@example.com',&lt;BR /&gt;'firstName': 'John',&lt;BR /&gt;'lastName': 'Doe'&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;Next, create Data Layer Variables in GTM. Go to GTM and navigate to your workspace, then click on Variables on the left sidebar. Create a new User-Defined Variable for each piece of data you need to capture. Click on "New," select "Data Layer Variable," and name the variable (e.g., DLV - User Email). Set the Data Layer Variable Name to match the key in your data layer (e.g., userEmail). Repeat this process for all necessary data points like first name and last name.&lt;/P&gt;&lt;P&gt;Finally, create a tag to send this data to your CRM. Go to the Tags section, click on "New," and configure a tag based on the method required by your CRM (e.g., HTTP Request, Custom HTML, etc.). Include the variables you've set up in the tag's configuration. Set up a trigger to fire the tag based on your data layer event (e.g., userData). Save and publish your container.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 13:46:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1016988#M75328</guid>
      <dc:creator>HMir</dc:creator>
      <dc:date>2024-07-26T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Update Contact via Google GTM</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1017043#M75330</link>
      <description>&lt;P&gt;I'm just stuck on the last part, there is no problem with datalayer readings.&lt;BR /&gt;I just don't know How to send data with GTM to HUBSPOT&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 15:10:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1017043#M75330</guid>
      <dc:creator>OYeni</dc:creator>
      <dc:date>2024-07-26T15:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create Update Contact via Google GTM</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1017084#M75332</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/800380"&gt;@OYeni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So at a high level you could a&lt;A href="https://intercom.geni.us/en/articles/1821916-adding-custom-javascript-to-your-website-using-google-tag-manager" target="_blank" rel="noopener"&gt;dd custom Javascript to GTM&lt;/A&gt; that hits an webhook endpoint or form API with the layer data. This could materialize in many ways, so I would need to know more about your case to suugest a more concrete solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need assistance or have any other questions please dont hesistate to reach out.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 16:14:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-Update-Contact-via-Google-GTM/m-p/1017084#M75332</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2024-07-26T16:14:18Z</dc:date>
    </item>
  </channel>
</rss>

