Skip to main content

Analytics

Track your blog's performance with Google Analytics integration. See pageviews, visitor data, search rankings, and ad revenue all in one place.

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

Analytics configuration and dashboard access are available to site owners only. Team members (editors, authors) cannot view or modify analytics settings.
Basic Tracking

Add your GA4 Measurement ID. Postlyo injects the tracking script on every page automatically.

Quick setup • 2 minutes
Dashboard Integration

View GA4, Search Console, and AdSense data directly in Postlyo—no tab switching.

Advanced • 15 minutes

Start with Basic Tracking

Most users only need Basic Tracking—paste your Measurement ID and you're done. Add Dashboard Integration later when you want all your data in one place.

Setting Up Tracking

Basic tracking adds the Google Analytics script to your blog pages, collecting visitor data like pageviews, sessions, and traffic sources.

1

Go to Settings → Analytics

Navigate to the Analytics settings page.

2

Enter your Measurement ID

Paste your GA4 Measurement ID (starts with G-).

3

Enable tracking

Toggle on "Enable Analytics Tracking".

4

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

1

Open Google Analytics

Go to analytics.google.com and sign in.

2

Open Admin settings

Click the gear icon (Admin) in the bottom left.

3

Go to Data Streams

Under Property Settings, click "Data Streams".

4

Select or create a stream

Click your web stream (or create one for your blog).

5

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

The same service account works for GA4, Search Console, and AdSense. Set it up once in SEO Settings, then enable each service you want.

Service Account Setup

A service account is a special Google account that allows Postlyo to access your analytics data securely.

1

Create a Google Cloud project

Go to Google Cloud Console and create a new project.

2

Enable required APIs

Enable the Google Analytics Data API and Google Search Console API.

3

Create a service account

Go to IAM & Admin → Service Accounts → Create Service Account. Give it a descriptive name like "Postlyo Analytics".

4

Download the JSON key

Create a key for the service account and download the JSON file. Keep this file secure!

5

Upload to Postlyo

Go to Settings → SEO and upload the JSON file in the Service Account section.

Keep your key secure

The service account JSON file contains sensitive credentials. Never share it publicly or commit it to version control.

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.

1

Open Google Analytics Admin

Go to Admin → Property Settings.

2

Copy Property ID

Copy the Property ID (numeric, like 123456789).

3

Grant service account access

Go to Property Access Management → Add Users → Enter your service account email (from the JSON file) → Give it "Viewer" access.

4

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:

SessionsTotal visits to your site
PageviewsTotal pages viewed
Bounce RateVisitors who left after one page
Avg. Session DurationHow long visitors stay
New vs ReturningFirst-time vs repeat visitors
Top PagesMost viewed pages on your blog
Traffic SourcesWhere visitors come from
DevicesDesktop, mobile, tablet breakdown

Search Console Tab

The Search Console tab shows how your blog performs in Google Search:

Total ClicksClicks from Google Search results
ImpressionsTimes your pages appeared in search
Average CTRClick-through rate from search
Average PositionYour average ranking in results
Top QueriesKeywords people search to find you
Top PagesYour best-performing pages in search

Set up Search Console

To enable Search Console data, add your service account to Search Console as a user with Full permissions. See the SEO documentation for details.

AdSense Tab

If you monetize with Google AdSense, this tab shows your earnings:

EarningsTotal ad revenue in the period
Page ViewsAd impressions on your pages
ClicksClicks on your ads
Page RPMRevenue per 1,000 pageviews

AdSense is optional

AdSense tracking is completely optional. Only set it up if you run Google ads on your blog and want to see earnings in your dashboard.

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.