La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
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.
janv. 30, 20195:38 PM - modifié janv. 31, 20195:17 AM
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
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
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.
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.
janv. 30, 20195:38 PM - modifié janv. 31, 20195:17 AM
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
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
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.