Skip to content

fix(utils): made tracking module align more w/ classless codebase & underlying library#657

Open
mzedel wants to merge 1 commit into
NorthernTechHQ:mainfrom
mzedel:fix/tracking
Open

fix(utils): made tracking module align more w/ classless codebase & underlying library#657
mzedel wants to merge 1 commit into
NorthernTechHQ:mainfrom
mzedel:fix/tracking

Conversation

@mzedel

@mzedel mzedel commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mzedel mzedel requested a review from a team as a code owner April 10, 2026 17:51
…nderlying library

Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>

@mineralsfree mineralsfree left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth removing style.async before merging?

Comment on lines +114 to +117
ReactGA.set({ dimension1: organization.plan });
ReactGA.set({ dimension2: organization.id });
ReactGA.set({ dimension3: user.id });
ReactGA.set({ userId: user.id });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe

ReactGA.set({
  dimension1: organization.plan,
  dimension2: organization.id,
  dimension3: user.id,
  userId: user.id,
});

const style = document.createElement('link');
style.href = cookieConsentCSS;
style.rel = 'stylesheet';
style.async = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link element does not have async property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants