You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I noticed there is no support for the set command (docs here). This is especially useful for tracking user properties. Is this planned? is there any workaround through this library? Thank you!
The text was updated successfully, but these errors were encountered:
I was also wondering the same. You can copy the code from https://github.com/MauricioRobayo/nextjs-google-analytics/blob/main/src/interactions/event.ts and modify it to call window.gtag("set"). Like so
export function set(
option: string,
{ ...otherOptions }: ConfigOption = {}
): void {
if (!(window as any).gtag) {
return;
}
(window as any).gtag("set", option, otherOptions);
};
Hi there, I noticed there is no support for the
set
command (docs here). This is especially useful for tracking user properties. Is this planned? is there any workaround through this library? Thank you!The text was updated successfully, but these errors were encountered: