Module that changes data based user location

Hi there Hubspot

Is there a way or a module I could purchase that would change the data within a module based on a user’s location.

For example if the user was from the USA, I would want the currency to display as USD or if the users was from France I would want the currency to change to EURO’s

Thanks

Olly

Hello @OMoss, this can be achieved using Javascript in your module.

Some ways to achieve it:

- Detect users’s browser language and display the currency accordingly. For example, if the user has the browser language set to ES-ES (Spain), you will show EUR. If he/she has it set to ES-MX (Mexico), you will show $ (pesos).

- Use Geolocation API to detect user’s location: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API

Hope this helps :slightly_smiling_face:

Hi @OMoss ,

This is a perfect usecase for a smart content rule where you use ‘country’ as the rule.

You can easily change the content per country.