CDN and Geolocation Data

Overview

Convert's tracking script uses Akamai CDN in production to deliver the script and provide geolocation data for visitor targeting.

Geolocation Format

Akamai returns ISO 3166 codes for geographic data:

FieldFormatExample
CountryISO 3166-1 alpha-2"US", "GB", "DE"
State/RegionISO 3166-2 subdivision"CA", "TX", "BY"
CityUppercase string"DALLAS", "LONDON"
ContinentTwo-letter code"NA", "EU", "AS"

Accessing Geolocation Data

Use convert.getUserData() in the browser console to inspect the geolocation object:

{
  "geo": {
    "country": "US",
    "city": "DALLAS",
    "continent": "NA",
    "state": "TX"
  }
}

Usage

Geolocation data is used for:

  • Audience targeting — Show experiences only to visitors from specific countries or regions
  • Consent conditions — Require consent only for visitors in GDPR/CCPA jurisdictions
  • Personalisation — Deliver region-specific content

For implementation details, see the Region-Specific Consent recipe.

Reference

For full details on the Akamai User Location Object, see the Akamai EdgeWorkers documentation.