GrainTagConfig object in init(). Analytics Web takes a GrainConfig object
in createGrainAnalytics() or new GrainAnalytics(). This page lists every option of both.
When this page and the TypeScript types of the published package disagree, the types win.
Grain Tag
The hosted script athttps://tag.grainql.com/v4/your-tenant-id.js calls init() with the
tenant alias for you. Pass a GrainTagConfig to init() from the npm package @grainql/tag,
or to window.GrainTag.init() to override the injected values.
Read Privacy and consent for the consent modes.
Analytics Web
Set a value in
defaultConfigurations for every configuration key that the page needs before
the first fetch. Read Remote configuration for the cache.
Use a different configCacheKey for each instance when one page runs two Analytics Web
instances. Two instances with the same key overwrite each other in localStorage.
Read Authentication for authStrategy, secretKey, and authProvider.
Read Automatic properties for the properties that
disableAutoProperties and allowedProperties control.
Values by environment
Read the environment at start and pass different values to one configuration object.
Read Performance for what each value costs.