-
Notifications
You must be signed in to change notification settings - Fork 1
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 click logging for toolbar actions and include show mode in even… #326
Conversation
f6b3faf
to
eca61e9
Compare
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.
I apologize for the unclear design document. 🙏
I've left one comment about it.
export const clickLogEvent = ({ | ||
element, | ||
zoomLevel, | ||
showMode, | ||
}: ClickLogEvent) => { | ||
pushToDataLayer({ | ||
event: 'click', | ||
element, | ||
zoomLevel, | ||
showMode, |
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.
Regarding the toolbar operations, since the design was to record the operations in a log called "toolbarAction", I would like you to create a separate function such as toolbarActionLogEvent()
. 🙏
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.
I apologize for the mistake😱.
I've revised the code, so please check it again🙏.
582ac0e
eca61e9
to
582ac0e
Compare
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.
Overall it looks good!
I just want you to check the value to be specified for the event key. 🙏
|
||
const handleClick = useCallback(() => { | ||
toolbarActionLogEvent({ | ||
element: 'fitview', | ||
showMode: showMode, |
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.
[nits]
showMode: showMode, | |
showMode, |
const handleClick = useCallback(() => { | ||
toolbarActionLogEvent({ | ||
element: 'tidyUp', | ||
showMode: showMode, |
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.
[nits]
showMode: showMode, | |
showMode, |
toolbarActionLogEvent({ | ||
element: 'zoom', | ||
zoomLevel: zoomLevel.toFixed(2), | ||
showMode: showMode, |
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.
[nits]
showMode: showMode, | |
showMode, |
toolbarActionLogEvent({ | ||
element: 'zoom', | ||
zoomLevel: zoomLevel.toFixed(2), | ||
showMode: showMode, |
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.
[nits]
showMode: showMode, | |
showMode, |
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.
Thank you🙏!
I've addressed all three of the points raised.↑
Fixed: 932ce82
showMode, | ||
}: ToolbarActionLogEvent) => { | ||
pushToDataLayer({ | ||
event: 'click', |
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.
I want to set the event in the toolbarActionLogEvent() function to 'toolbarAction'!
event: 'click', | |
event: 'toolbarAction', |
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.
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.
It looked good! 🎉
Thank you for the corrections!
Summary
📈 Add click logging for toolbar actions and include show mode in event data.
Testing
(-)
(+)
Other Information