Hooks

Methods

(static) useRGA4() → {void}

Source:

Custom hook to get the RGA4 context

Example
const rga4 = useRGA4()

// Fire an analytics event
rga4.event('<Event-Name>', { ...Analytic event properties })
Returns:
Type
void