Open gitstart-app[bot] opened 1 week ago
Name | Link |
---|---|
Latest commit | c1bbc44213b587d68f73765f4232d760664e2f67 |
Latest deploy log | https://app.netlify.com/sites/sourcegraph/deploys/667b34db0ba9a500089b5ba8 |
Deploy Preview | https://deploy-preview-7028--sourcegraph.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This PR was created by GitStart to address the requirements from this ticket: SGM-6993. This ticket was imported from: SGM-6993
Description:
Sets up custom event capture for the website using PostHog.
Events captured:
“Login” button clicks in nav bar
(event_name = ‘login_click’. Properties : current_page = The URL the user is viewing when they click the login button.)
Cody CTA button clicks (on the navbar)
Cody CTA button clicks (on a page)
Authentication button clicks
“Contact sales” button slicks
Form submission
[Sourcegraph Issue] https://github.com/sourcegraph/about/issues/6993
[Ticket] https://clients.gitstart.com/sourcegraph/3436/tickets/SGM-6993
Each custom event requires an event name, and also in some cases custom properties for each event were captured. Check detailed documentation here: https://docs.google.com/document/d/1Lw3cJw6ZKsKoJff9ahYtX_Dg_ucZFnMDzgGc9qgBMg0/edit
DEMO:
https://www.loom.com/share/0040c2caa4a8453881c76f47ad37186e?sid=d358076a-5f25-41c4-94cb-890cfdcf6ad2
Test cases:
[x] All documented events are captured and displayed in the posthog account activity logs
[x] Each click is tracked and captured as requested in the documentation
[x] Eventnames match what was requested in the documentation
[x] Current page / position is returned in the captured event on the posthog activity section
Test plan:
-Login to the posthog account at https://us.posthog.com/
-Request login credentials from PM or TM
-Donot submit the form on "contact/request-info"
-Check demo video for testing scenarios