What the GeoSwap script keeps in your visitors' browsers
The script stores only random ids and settings. It never stores names, emails or anything a visitor types. The category column is a suggestion for your consent tool; your own privacy policy decides.
gs_vid
A random visitor id, so a returning visitor and their conversions are recognized. Shared by your subdomains.
gs_vh
A backup of gs_vid on the host itself, so the id survives a tool that deletes cookies on the parent domain.
gs_sid
The current session, so page views are grouped into visits.
gs_dt
A test that finds your registrable domain for gs_vid. It is removed straight away.
gs_s_<project>
The session's page count, landing details and experiment exposures.
gs_p_<project>
The previous page and its time on page.
gs_rules_<project>, gs_vars_<project>, gs_redirect_log
A short cache of your rules, and a guard that stops redirect loops.
geoswap_visited_<rule>
Remembers that a "first visit only" redirect already ran for this visitor.
geoswap_popup_dismissed_<id>
Remembers that a visitor closed a popup, bar or redirect prompt.
geoswap_consent_<id>
The visitor's choice on a GeoConsent banner.
geoswap_override_<project>
Turns GeoSwap off for you while you check your own site with ?geoswap-override.
| Name | Where | Lifetime | Purpose | Suggested category |
|---|---|---|---|---|
| gs_vid | Cookie, on your registrable domain (example.com) | 400 days | A random visitor id, so a returning visitor and their conversions are recognized. Shared by your subdomains. | Analytics |
| gs_vh | Cookie, this host only | 400 days | A backup of gs_vid on the host itself, so the id survives a tool that deletes cookies on the parent domain. | Analytics |
| gs_sid | Cookie, this host only | 30 minutes, renewed while the visitor is active | The current session, so page views are grouped into visits. | Analytics |
| gs_dt | Cookie, deleted at once | Less than a second | A test that finds your registrable domain for gs_vid. It is removed straight away. | Analytics |
| gs_s_<project> | localStorage | Until cleared | The session's page count, landing details and experiment exposures. | Analytics |
| gs_p_<project> | sessionStorage | Until the tab closes | The previous page and its time on page. | Analytics |
| gs_rules_<project>, gs_vars_<project>, gs_redirect_log | sessionStorage | Until the tab closes (rules cached 5 minutes) | A short cache of your rules, and a guard that stops redirect loops. | Functional |
| geoswap_visited_<rule> | Cookie | 30 days | Remembers that a "first visit only" redirect already ran for this visitor. | Functional |
| geoswap_popup_dismissed_<id> | Cookie | Your dismiss setting (session, minutes, or forever) | Remembers that a visitor closed a popup, bar or redirect prompt. | Functional |
| geoswap_consent_<id> | Cookie | 365 days | The visitor's choice on a GeoConsent banner. | Necessary (it stores the consent choice itself) |
| geoswap_override_<project> | Cookie | Until the browser closes | Turns GeoSwap off for you while you check your own site with ?geoswap-override. | Functional (only set for your team) |
<project> is your project id from the script tag; <rule> and <id> are the ids of your redirects, popups, bars and consent banners.
Some consent tools delete cookies they don't recognize, or block them until the visitor accepts. When that happens, GeoSwap still runs your redirects and content, but it can't recognize returning visitors or count their visits. Setup → Sites & script shows a warning for the site when this affects a real share of its visitors.
GeoSwap doesn't work around a consent tool. Add GeoSwap's cookies to the tool instead, in the category your policy allows.
gs_ and geoswap_ if the tool accepts patterns.data-cookieconsent="statistics".Segment's consent manager is set up in your site's own code. If your setup deletes cookies that aren't on its list, ask your developer to add the GeoSwap cookie names above to that list, in the category your policy allows.
GeoSwap isn't a Google tag, so Consent Mode doesn't change what it stores. If you load GeoSwap through Google Tag Manager, the tag's consent settings decide when it fires: under the tag's Advanced Settings → Consent Settings, require the consent type your policy needs (for example analytics_storage), or none. See Google Tag Manager.