Linode create Google Analytics timing POC
Description
adds Google Analytics timing to track how long a user takes to successfully create a Linode.
This is achieved by using an instance variable on the LinodeCreateContainer class that is set to the current UNIX timestamp on instantiation. Then when the user submits the form we calculate the number of difference between that time and the current time and send that to Google Analytics via the timing() function from the react-ga package.
How to test
- Have a stopwatch ready
- Have the developer tools open and on the Networking tab
- Start the stopwatch when you navigate to the Linode create page
- Fill out the form to create a Linode
- Stop the stopwatch when you click the
Create Linodebutton - Ensure that upon successfully creating a Linode a Google Analytics timing is sent and that the value in the params specified as
uttis equal to the number of milliseconds you timed on your stopwatch
This is cool! Just went through the flow and confirmed that the amount of time spent was tracked and that the utt value matched (give or take half a second) my phone's stop watch
Closing for now due to inactivity. We can revisit this PR if we need this!