Currently, you can only login with Github, We will be adding more OAuth providers soon.
Initially you will see this screen, when you don't have any project
Fill in your correct details, the project details (Name and Client URL) cannot be updated later
After creating the project, you will see your API key, keep it handy, you will need it for Sankhya SDK integration.
Right now, if you go to analytics page, you will see No data available when you haven't integrated the SDK yet or there were no visitors after the integration.
You can integrate Sankhya only in your client side projects.
Load the below SDK script URL in your project, it adds a method to your browser window
https://cdn.jsdelivr.net/gh/abhijhacodes/sankhya-backend/client-sdk.js
Copy your API key from project page
Call the below method on any page in your web app, preferrably on load.
Make sure the SDK script is loaded completely before you trying calling the below method
captureUserEvent method returns a Promise, you just need to call it, however you want.
Please note that the API key can be used to capture analytics only on the Client URL that was used while creating the project. So, while testing it locally you will see the below error. Don't worry about it and deploy your project to production.
You are not authorized to perform this action
This is all that you have to do and Sankhya will start generating user analytics for you.
Once you have integrated the Sankhya SDK in your client side project, you can start seeing the user analytics straight away.
The analytics data is shown for selected start date and end date which you can change, and it defaults to past one week.
You can also see your profile details, session expiry and logout option by clicking on your profile icon on top right corner. Session expires in 30 days.