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 Sankhya javascript SDK by adding the below line in the <head> of your HTML file.
<head>
<script
src="https://cdn.jsdelivr.net/gh/abhijhacodes/sankhya-backend/client-sdk.js?key={YOUR_API_KEY}"
type="text/javascript"
defer
/>
Replace YOUR_API_KEY with the API key that you have got on project page.
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.