.d.ts files of @grainql/tag 4.5.1 and
@grainql/analytics-web 3.4.2. When a sentence on this site disagrees with a block here, the
block wins. A field with ? is optional.
Grain Tag
GrainTagConfig
The argument ofinit.
Read Configuration options.
GrainTagInstance
The return value ofinit and getInstance.
DataLayerConnectorConfig
The element type of theupdateDataLayerConnectors argument. The package does not export this
name, so declare the shape in your own code when you need it.
EventPayload
The shape of one event on the wire.GrainEvent
An event before the SDK fills in the user ID and the timestamp.ConsentMode
The value ofconsentMode in GrainTagConfig.
ConsentState
The return value ofconsent.status.
UTMParameters
The UTM parameters of the current URL.FirstTouchAttribution
The stored source of the first visit.HeatmapClickData
One recorded click.HeatmapScrollData
One recorded scroll segment.Analytics Web
GrainConfig
The argument ofnew GrainAnalytics and createGrainAnalytics.
GrainEvent
The object form oftrack.
GrainEvent has a number timestamp. The Analytics Web GrainEvent has a
Date timestamp.
EventPayload
The shape of one event on the wire.AuthStrategy
The value ofauthStrategy in GrainConfig and LoginOptions.
AuthProvider
The object that supplies the JWT for theJWT strategy.
ConsentMode
The value ofconsentMode in GrainConfig.
ConsentState
The return value ofgetConsentState, and the argument of a consent listener.
ConsentState has a number timestamp. The Analytics Web ConsentState has a
Date timestamp.
CookieConfig
The options of the cookie that holds the permanent ID.SendEventOptions
The last argument oftrack and of every template method.
SetPropertyOptions
The last argument ofsetProperty.
LoginOptions
The argument oflogin.
PropertyPayload
The shape of asetProperty request on the wire. Every value is a string.
RemoteConfigRequest
The shape of a configuration request on the wire.RemoteConfigOptions
The options argument ofgetConfigAsync, getAllConfigsAsync, and fetchConfig.
RemoteConfigResponse
The return value offetchConfig.
RemoteConfigCache
The record that the client stores underconfigCacheKey in localStorage.
ConfigChangeListener
The argument ofaddConfigChangeListener and removeConfigChangeListener.
ReferrerCategory
The category that the client assigns to a referrer.UTMParameters
The UTM parameters of the current URL.FirstTouchAttribution
The stored source of the first visit.InteractionConfig
One automatic interaction tracker from the dashboard.SectionConfig
One automatic section tracker from the dashboard.AutoTrackingConfig
The automatic tracking definition that the API returns.SectionViewData
One recorded section view.SectionTrackingOptions
The thresholds that decide when a section view counts. Read Attention quality.ErrorDigest
The summary of the events in a failed request.FormattedError
The record that the client logs when a request fails. Read Errors and retries.React
GrainProviderProps
The props ofGrainProvider.
UseConfigOptions
The options argument ofuseConfig.
UseConfigResult
The return value ofuseConfig.
UseAllConfigsOptions
The options argument ofuseAllConfigs.
UseAllConfigsResult
The return value ofuseAllConfigs.
TrackFunction
The return value ofuseTrack.
ConsentBannerProps
The props ofConsentBanner.
PrivacyPreferenceCenterProps
The props ofPrivacyPreferenceCenter.
CookieNoticeProps
The props ofCookieNotice.
PrivacyPreferences
Thepreferences field of usePrivacyPreferences.
DataDeletionOptions
The argument ofuseDataDeletion.