-
Notifications
You must be signed in to change notification settings - Fork 78
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
Botonic Plugin Google Analytics #823
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.
🚀 a new plugin for botonic!
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.
Cool!! Publish it freely once you have considered the feedback! 🚀
@dpinol @vanbasten17 after doing some tests with the Google Analytics tracking I did a refactor of the I've removed the I've also added more and better documentation of the |
@asastre please leave the |
@dpinol @vanbasten17 @ericmarcos changes done. I restored the |
@asastre review the prettier errors in CI checks. More important, your pre-commit should not have let you comit this file. Please verify that you did "pre-commit install" on your botonic checkout |
…erTraits to getUserId and getUserTraits
…ustom fields to the automatic tracking
…omaticTracking to clarify its usage
@dpinol @ericmarcos I've made some changes/enhancements:
|
…serTraits, options.eventFields to options.getUserId, options.getUserTraits, options.getEventFields for clarity
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.
lgtm 🚀
…on't send userId/userTraits if getUserId is not set
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 comment on why you removed the default getUserId?
I removed it because at first we were assuming that |
…rary with tracking through direct requests usin axios
@dpinol @ericmarcos The plugin wasn't working properly when tracking on the server side loosing events randomly and never reaching Google Analytics. |
Description
New plugin to track user interaction or bot's behaviour to Google Analytics.
Context
Tracking information to Google Analytics is very usual nowadays and for some companies there is the need to track the user interaction with the bot to Google Analytics.
Approach taken / Explain the design
This plugin provides a basic tracking with its method
track
and it has to be done manually, there is no default tracking through thepre
orpost
methods.To documentate / Usage example
See Readme.md file for documentation/examples.
Testing
The pull request...