-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pendo and user information #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I have just one small concern about loading chrome
from pug.
src/pug/header.pug
Outdated
@@ -1,3 +1,7 @@ | |||
script(src='/insights/static/chrome/js/chrome.js') | |||
script. | |||
window.getName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you call this function from chrome instead of HTML? I am kinda worried that the chrome file will get loaded twice.
src/js/chrome.js
Outdated
import jwt from 'jwt-redhat'; | ||
|
||
const onAuth = auth(); | ||
|
||
onAuth.then(() => { | ||
analytics(jwt.getUserInfo()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you call the getName
function from here? So the data will be loaded emediately when user logs in.
@karelhala I abstracted some of the stuff, so take another look and tell me what you think. Not sure if abstracting the |
No description provided.