Metrik is a powerful and easy-to-use website analytics tool that provides valuable insights into your website's traffic and user behavior.
- Event Tracking: Capture and analyze specific user actions and conversions.
- Realtime Data: Monitor website activity and metrics as they happen.
- Traffic Analysis: Gain insights into user demographics, including country and region.
- User Behavior Analysis: Visualize user journeys and understand their paths to conversion.
Experience the power of Metrik and gain valuable insights into your website's performance. Visit our website to sign up for a free trial and see how Metrik can help you.
To set up Metrik locally, follow these steps:
-
Clone the repository:
git clone https://github.com/bhuvanpddahal/metrik cd metrik -
Install dependencies:
npm install # Or yarn install or pnpm install -
Set up environment variables:
-
Create a
.envfile in the root directory. -
Add your environment variables (e.g., database connection details, API keys).
-
Example
.envfile structure:# Public NEXT_PUBLIC_APP_URL="http://localhost:3000" # Database DATABASE_URL= # Auth.js AUTH_URL="http://localhost:3000/api/auth" AUTH_SECRET= AUTH_GOOGLE_ID= AUTH_GOOGLE_SECRET= # Nodemailer EMAIL_SERVER_USER= EMAIL_SERVER_PASSWORD= EMAIL_SERVER_HOST= EMAIL_SERVER_PORT= EMAIL_FROM= # Metrik (If you want to track this website itself) METRIK_WEBSITE_ID=
-
-
Run the development server:
npm run dev # or yarn dev, or pnpm dev -
Access the application:
- Open your browser and navigate to
http://localhost:3000(or the port specified by your development server).
- Open your browser and navigate to
We welcome contributions from the community! If you'd like to contribute to Metrik, please follow these guidelines:
-
Fork the repository.
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Add your commit message"
-
Push your changes to your fork:
git push origin feature/your-feature-name
-
Create a pull request.
Please ensure that your code follows our coding style and make sure that you have tested it well before creating a pull request.
Hey! 👋
Thanks for checking out Metrik! If you like it, please give it a ⭐ star!
See my other projects: github.com/bhuvanpddahal
Feedback welcome! 🚀
