<?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: get user geolocation in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/1045640#M40750</link>
    <description>&lt;P&gt;{{ request.country }} this worked for my&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 09:15:25 GMT</pubDate>
    <dc:creator>lstepany</dc:creator>
    <dc:date>2024-09-25T09:15:25Z</dc:date>
    <item>
      <title>get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591366#M27741</link>
      <description>&lt;P&gt;Hello community, I would like to display my content sorted according to the visitor's country. I have been doing some research and I could use the ip of the user and work with a third party service like 'ipstack' to get the country but I wonder if there is a free way to do it just with hubspot?&lt;/P&gt;&lt;P&gt;the content I want to display is displayed by a module and consumed from hubdb.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 18:34:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591366#M27741</guid>
      <dc:creator>llopez1</dc:creator>
      <dc:date>2022-03-09T18:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591901#M27750</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/291283"&gt;@llopez1&lt;/a&gt;&amp;nbsp;, HubSpot does some geolocation out of the box, in the docs you can find the &lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables#http-request-variables" target="_blank" rel="noopener"&gt;HTTP Request Vriables&lt;/A&gt; that documents all kinds of variables that are tied to the request, thus you can use either the {{ request.geoip_country }} or the documented {{ request.headers.cf-ipcountry }} to check on the Country Code that came with the IP.&lt;BR /&gt;&lt;BR /&gt;If you need further help don't hesitate to write here.&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If my answer was helpful please mark it as a solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:24:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591901#M27750</guid>
      <dc:creator>miljkovicmisa</dc:creator>
      <dc:date>2022-03-10T10:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591980#M27758</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/291283"&gt;@llopez1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Smart content modules&lt;/STRONG&gt; display different versions of your content based on viewer category.&lt;/P&gt;
&lt;P&gt;You can base your smart rules on the country.&amp;nbsp;The country is determined by the IP address of the visitor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) On a Contact record there is a field 'IP Country'&lt;/STRONG&gt;, which automatically fills in a Country.&lt;/P&gt;
&lt;P&gt;Consider using &lt;CODE&gt;{{contact.&lt;SPAN&gt;ip_country}}&lt;/SPAN&gt;&lt;/CODE&gt; in your templates. Then add conditional logic as you please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:08:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/591980#M27758</guid>
      <dc:creator>mangelet</dc:creator>
      <dc:date>2022-03-10T13:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/976310#M39041</link>
      <description>&lt;P&gt;I do not see these variables. Is this another outdated solution?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 19:01:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/976310#M39041</guid>
      <dc:creator>Kvis1</dc:creator>
      <dc:date>2024-05-14T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/977879#M39110</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/761685"&gt;@Kvis1&lt;/a&gt;. Thanks for your comment. It looks like the available variables have been updated, and no longer include the two mentioned by&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;. I'm going to add this to my archive list since it is outdated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome to create a new post if you still need help, and we'll do our best to get some of our community experts to take a look.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee &lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 20:59:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/977879#M39110</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-16T20:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: get user geolocation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/1045640#M40750</link>
      <description>&lt;P&gt;{{ request.country }} this worked for my&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:15:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/get-user-geolocation/m-p/1045640#M40750</guid>
      <dc:creator>lstepany</dc:creator>
      <dc:date>2024-09-25T09:15:25Z</dc:date>
    </item>
  </channel>
</rss>

