Analytics
Track your blog's performance with Google Analytics integration. See pageviews, visitor data, search rankings, and ad revenue all in one place.
On This Page
Overview
Connect your Google Analytics and see everything in one place—no switching between dashboards. Postlyo automatically handles script injection and data fetching. You just paste your IDs.
Site Owner Feature
Add your GA4 Measurement ID. Postlyo injects the tracking script on every page automatically.
Quick setup • 2 minutesView GA4, Search Console, and AdSense data directly in Postlyo—no tab switching.
Advanced • 15 minutesStart with Basic Tracking
Setting Up Tracking
Basic tracking adds the Google Analytics script to your blog pages, collecting visitor data like pageviews, sessions, and traffic sources.
Go to Settings → Analytics
Navigate to the Analytics settings page.
Enter your Measurement ID
Paste your GA4 Measurement ID (starts with G-).
Enable tracking
Toggle on "Enable Analytics Tracking".
Save
Click Save Settings. Tracking starts immediately.
Analytics Settings
Basic tracking configuration
Find this in Google Analytics under Admin → Data Streams
Finding Your Measurement ID
Open Google Analytics
Go to analytics.google.com and sign in.
Open Admin settings
Click the gear icon (Admin) in the bottom left.
Go to Data Streams
Under Property Settings, click "Data Streams".
Select or create a stream
Click your web stream (or create one for your blog).
Copy the Measurement ID
Copy the Measurement ID (format: G-XXXXXXXXXX).
Analytics Dashboard Setup
For advanced users who want to see analytics data directly in Postlyo, you'll need to set up a Google Cloud Service Account. This enables:
- Google Analytics data in your dashboard
- Google Search Console integration
- AdSense earnings tracking (optional)
One service account, multiple services
Service Account Setup
A service account is a special Google account that allows Postlyo to access your analytics data securely.
Create a Google Cloud project
Go to Google Cloud Console and create a new project.
Enable required APIs
Enable the Google Analytics Data API and Google Search Console API.
Create a service account
Go to IAM & Admin → Service Accounts → Create Service Account. Give it a descriptive name like "Postlyo Analytics".
Download the JSON key
Create a key for the service account and download the JSON file. Keep this file secure!
Upload to Postlyo
Go to Settings → SEO and upload the JSON file in the Service Account section.
Keep your key secure
Finding Your Property ID
After setting up the service account, you need to grant it access to your GA4 property and find your Property ID.
Open Google Analytics Admin
Go to Admin → Property Settings.
Copy Property ID
Copy the Property ID (numeric, like 123456789).
Grant service account access
Go to Property Access Management → Add Users → Enter your service account email (from the JSON file) → Give it "Viewer" access.
Configure in Postlyo
Go to Settings → Analytics Dashboard Setup and enter your Property ID.
Using the Dashboard
Once configured, go to Analytics in the sidebar to see your dashboard. The dashboard has three tabs for different data sources.
Analytics Dashboard
Your data at a glance
Sessions
12,345
+12%
Pageviews
45,678
+8%
Bounce Rate
45.2%
-3%
Avg. Duration
2m 34s
+5%
Google Analytics Tab
The Analytics tab shows key metrics from your GA4 property:
Search Console Tab
The Search Console tab shows how your blog performs in Google Search:
Set up Search Console
AdSense Tab
If you monetize with Google AdSense, this tab shows your earnings:
AdSense is optional
Best Practices
📊 Check regularly, but not obsessively
Review your analytics weekly or monthly. Daily fluctuations are normal and can be misleading. Focus on trends over time.
🎯 Focus on actionable metrics
Pageviews are nice, but focus on metrics you can act on: Which posts get the most engagement? Which search queries bring traffic?
🔍 Use Search Console insights
Search Console shows what people search for. Use this to find content ideas and optimize existing posts for better rankings.
📱 Don't ignore mobile
Check your device breakdown. If most visitors are on mobile, make sure your content is mobile-friendly.