Location Info

August 20, 2025

The locationInfo property stores the user's location (for example, to determine whether to show an EU GDPR banner).

This property is updated when the consent banner is fetched, and defaults to null when the location cannot be determined, such as in offline mode. The location information can be updated via the setLocationInfo() method, which accepts a LocationInfo object or null.

Usage

Returns

AutoTypeTable Error

No type data generated. Verify the path/name and ensure the file is readable from the configured basePath.

Path: ./packages/core/src/index.ts

Name: LocationInfo