Skip to content

Commit

Permalink
Update attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietredweb committed Jun 4, 2024
1 parent cafcaee commit 894c012
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AnalyticsNext/handle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const AnalyticsHandle = ({ router, attributes, children }: AnalyticsHandle) => {
async (prevRoute: string, attributes: any) => {
const referer = prevRoute ? prevRoute : '';
window['referer'] = referer;
window['attributes'] = attributes;
const responseStart = await startTracker(endPoint, '', referer, '', attributes);
responseStart?.event_uuid && AnalyticsStore.setEventID(responseStart.event_uuid);
responseStart?.visitor_uuid && AnalyticsStore.setUUID(responseStart.visitor_uuid);
Expand Down

0 comments on commit 894c012

Please sign in to comment.