Documentation

Analytics

Track your blog's performance with Google Analytics 4 and the AutoBlogWriter dashboard.

Analytics

AutoBlogWriter integrates with Google Analytics 4 (GA4) to give you traffic and engagement data for your blog — all viewable directly in the AutoBlogWriter dashboard.

How It Works

  1. Install GA4 on your site — Add the Google Analytics 4 snippet to your site as you normally would (via <script> tag, Google Tag Manager, or a Next.js analytics package).
  2. Connect Google Analytics in the AutoBlogWriter dashboard — In your workspace settings, click Connect Google Analytics and sign in with Google OAuth. This grants AutoBlogWriter read-only access to your analytics data.
  3. Add your GA4 property ID — Enter the GA4 property ID that corresponds to your site URL. AutoBlogWriter validates that the property matches your connected site.

Once connected, the AutoBlogWriter dashboard fetches analytics data from GA4 via the Google Analytics Data API and displays it alongside your blog content.

Installing GA4

If you don't have GA4 set up yet, create a property at analytics.google.com and add the tracking snippet to your site.

For Next.js, use the <Script> component from next/script in your root layout:

// app/layout.tsx
import Script from "next/script";
 
export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"
          strategy="afterInteractive"
        />
        <Script id="gtag-init" strategy="afterInteractive">
          {`
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', 'G-XXXXXXXXXX');
          `}
        </Script>
      </body>
    </html>
  );
}

Replace G-XXXXXXXXXX with your GA4 measurement ID.

Connecting in the Dashboard

  1. Go to Workspace Settings → Integrations in the AutoBlogWriter dashboard.
  2. Click Connect Google Analytics.
  3. Sign in with the Google account that has access to your GA4 property.
  4. Select the GA4 property that matches your site URL.

AutoBlogWriter uses read-only access to pull page views, sessions, and engagement metrics for your blog posts.

What You'll See

The dashboard displays analytics data per post and across your blog:

  • Page views and unique visitors
  • Average engagement time
  • Top-performing posts
  • Traffic trends over time

All data comes directly from your GA4 property — AutoBlogWriter doesn't collect or proxy analytics separately.