Glopal takes your existing site as the source when deliverying localized sites. Glopal automatically adapts experience for the buyer, rewriting all links, translating text and localizing prices as required.
Any action that user does on the localized site (adding product to the wishlist or the cart, or signing up for the newsletter) will be processed as if user is doing the same action on your existing source site.
Sometimes you may want to capture localization context, eg. to recognize that user is visiting your Spanish localized site and process newsletter signup knowing that user should be added to the Spanish users newsletter group.
Glopal offers access to this localization context:
Some form builders may allow defining dynamic value directly, in such case you can use glopal.config.target.countryCodeas dynamic JS value.
Server Side customization
If you have your own custom backend code that is receiving form submission, you can get country of the localized site from X-GlopalHTTP headers, for example: