Component Menu

    Components

    GeoIP Redirect

    This component's a Site Studio element that gets a JavaScript prefix calling an API of geolocation. This API uses the user IP and returns the country code of the user, allowing actions such as country-based redirection.


    Edited 1 year 11 months ago

      Desktop

      Mobile

      Step by Step

       

      1. This component's a Site Studio element that gets a JavaScript prefix calling an API of geolocation. This API uses the user IP and returns the country code of the user, allowing actions such as country-based redirection.

       

      2. Because it is a code directly in the component, it is not editable by the content manager and adjustments to these actions cannot be versioned.

       

      3. Thus, whenever it is necessary to use this component, a developer must edit the code in the Prefix and also redo it whenever the site receives a Deploy.