Lead Capture Tools

khart1
Participant

Show/Hide Pop-up Form Based on Visitor Location?

Résolue

Is is possible to show a pop-up form only to visitors from the United States (for example) or a specifc state? I found a similar question to which the answer was basically, no, this isn't possible. However, since the previous question was specific to GDPR, I thought I'd double check if my requirement could work. 

 

Thanks for any insights.

1 Solution acceptée
MFrankJohnson
Solution
Leader d'opinion

Show/Hide Pop-up Form Based on Visitor Location?

Résolue

>>Is is possible to show a Pop-Up form only to visitors from the United States (for example) or a specifc state?

 

No. Not built-in HubSpot functionality for HubSpot Pop-Up Forms.

- see image

 

mfjlabs-screenshot-Pop-Up Forms I HubSpot-20190130.png

 

 

However, another way to approach this problem would be by looking at the URL. If (for example) your URLs were customized to contain country-specific, or state-specific information you could program the HubSpot Pop-Up to target specifics in the URL.

 

Example URLs:

 

USA
www.travel-example.com/best-cities/us/ma/london www.travel-example.com/best-cities/us/ma/cambridge www.travel-example.com/best-cities/us/dc/washington
www.travel-example.com/best-cities/us/ct/washington www.travel-example.com/best-cities/us/ga/washington www.travel-example.com/best-cities/us/il/springfield www.travel-example.com/best-cities/us/ma/springfield

UK
www.travel-example.com/best-cities/uk/london
www.travel-example.com/best-cities/uk/cambridge

Canada
www.travel-example.com/best-cities/ca/toronto
www.travel-example.com/best-cities/ca/quebec

 

 

Of course, this would take planning well beyond the scope of just HubSpot, and need to take into consideration both countries that have cities of the same name and states that have cities of the same name. But if URLs were planned this way, they could be easily targeted by not only HubSpot Pop-Ups, but ads, and smart content as well.

 

Hope that helps.

Help answer your question? If so, remember to accept this solution now.

 

Best,
Frank

Author, the Perfect HubSpot Series


hubspot-solutions-signature-mfrankjohnson-v05.png

MFrankJohnson.com | Connect on LinkedIn

Help find posts quickly ... accept this solution now.

 

Note: Please search for recent posts as HubSpot evolves to be the #1 CRM platform of choice world-wide.

 

Hope that helps.

 

Be well,
Frank


www.mfrankjohnson.com

Voir la solution dans l'envoi d'origine

2 Réponses
herrygupta
Participant

Show/Hide Pop-up Form Based on Visitor Location?

Résolue

Hi @khart1 

Here are the possibilities.

1. If you want the from to be visible to specific country users the easiest solution is add the form embed code in the rich text and make that rich text box smart on the basis of country.
From here you will get more information.
https://knowledge.hubspot.com/articles/kcs_article/cos-general/embed-a-form-in-a-smart-rich-text-mod...


2. You can make the form smart on the base of the country.
https://knowledge.hubspot.com/articles/kcs_article/cos-general/create-smart-forms

3. If your condition is to match the specific state, you have to take the help of third party script. To use this you must have good knowledge of javascript, jquery and css. The way to implement this is:
a.) Use the third party api which will return you the country and state of the user when page loads. One of the examples of third party api is:
https://api.ipapi.com/
b.) Add multiple forms on the page(If you have 2-3 forms it will not effect anything and if you have too many forms it will effect the page load time.) which you want to show to users and hide them with css and also assign them specific classes.
c.) Get the location with api and add the if condition. where if condition matches use the class of form to show it on the page.

If any of this solution helps you, please accept this answer.

Thanks!!


MFrankJohnson
Solution
Leader d'opinion

Show/Hide Pop-up Form Based on Visitor Location?

Résolue

>>Is is possible to show a Pop-Up form only to visitors from the United States (for example) or a specifc state?

 

No. Not built-in HubSpot functionality for HubSpot Pop-Up Forms.

- see image

 

mfjlabs-screenshot-Pop-Up Forms I HubSpot-20190130.png

 

 

However, another way to approach this problem would be by looking at the URL. If (for example) your URLs were customized to contain country-specific, or state-specific information you could program the HubSpot Pop-Up to target specifics in the URL.

 

Example URLs:

 

USA
www.travel-example.com/best-cities/us/ma/london www.travel-example.com/best-cities/us/ma/cambridge www.travel-example.com/best-cities/us/dc/washington
www.travel-example.com/best-cities/us/ct/washington www.travel-example.com/best-cities/us/ga/washington www.travel-example.com/best-cities/us/il/springfield www.travel-example.com/best-cities/us/ma/springfield

UK
www.travel-example.com/best-cities/uk/london
www.travel-example.com/best-cities/uk/cambridge

Canada
www.travel-example.com/best-cities/ca/toronto
www.travel-example.com/best-cities/ca/quebec

 

 

Of course, this would take planning well beyond the scope of just HubSpot, and need to take into consideration both countries that have cities of the same name and states that have cities of the same name. But if URLs were planned this way, they could be easily targeted by not only HubSpot Pop-Ups, but ads, and smart content as well.

 

Hope that helps.

Help answer your question? If so, remember to accept this solution now.

 

Best,
Frank

Author, the Perfect HubSpot Series


hubspot-solutions-signature-mfrankjohnson-v05.png

MFrankJohnson.com | Connect on LinkedIn

Help find posts quickly ... accept this solution now.

 

Note: Please search for recent posts as HubSpot evolves to be the #1 CRM platform of choice world-wide.

 

Hope that helps.

 

Be well,
Frank


www.mfrankjohnson.com