Setup Guide
Quickstart
Get analytics, duration tracking, and live chat running in under 5 minutes.
What You'll Get
Pageview Analytics
Duration Tracking
Live Chat (optional)
1
Create an Account
Sign up at phi.llc/register to get instant access to your dashboard and site ID.
2
Get Your Site ID
Go to Domains and click "Get Code" on any domain. Your site ID looks like:
phi_6adc65a9d963
Add the Script
Add this to your website's <head> tag:
Analytics Only
<script src="https://phi.llc/phi.js" data-id="your-site-id"></script>
With Live Chat
<script src="https://phi.llc/phi.js" data-id="your-site-id" data-chat="true" ></script>
4
Verify Installation
Open your browser's Developer Tools (F12) and check the Console. You should see:
[Phi] SDK initialized { siteId: "your-site-id", chatEnabled: true }What's Tracked Automatically
- Pageviews — Every page load and SPA navigation
- Duration — Active time on page (pauses when tab is hidden)
- Device Info — Browser, OS, screen size, device type
- Location — Country and city (from IP, not stored)
- Referrer — Where the visitor came from
You're all set!
Data will appear in your dashboard within seconds. Check the Event Stream for real-time activity.