Home Pricing login Dashboard

Google Analytics

Track the performance of your generated content with Google Analytics integration.

Overview

The Google Analytics integration allows you to view traffic and engagement data for your generated articles directly within Content Zen. See which articles are performing best and track key metrics like page views, sessions, and engagement time.

Prerequisites

Before setting up the integration, you need:

  • A Google Analytics 4 (GA4) property
  • A Google Cloud Platform account
  • A Service Account with Analytics API access

Setup Guide

Step 1: Enable the Analytics API

  1. Go to the Google Cloud Console
  2. Select your project (or create a new one)
  3. Navigate to APIs & ServicesLibrary
  4. Search for "Google Analytics Data API" and enable it

Step 2: Create a Service Account

  1. Go to APIs & ServicesCredentials
  2. Click Create CredentialsService Account
  3. Enter a name (e.g., "ContentZen Analytics")
  4. Click Create and Continue, then Done

Step 3: Generate a JSON Key

  1. Click on your service account
  2. Go to the Keys tab
  3. Click Add KeyCreate new key
  4. Select JSON and click Create
  5. Save the downloaded file securely

Step 4: Grant Access in Google Analytics

  1. Copy the service account email address
  2. Go to Google Analytics
  3. Navigate to Admin (gear icon)
  4. Under your property, click Property Access Management
  5. Click the + button → Add users
  6. Paste the service account email
  7. Set role to Viewer (minimum required)
  8. Click Add

Step 5: Find Your Property ID

  1. In Google Analytics, go to Admin
  2. Under your property, click Property Settings
  3. Copy the Property ID (a number like 123456789)

Step 6: Configure in Content Zen

  1. In Content Zen, go to SettingsIntegrations
  2. Select the Google tab
  3. Upload your JSON key file under "Google Analytics File"
  4. Enter your Property ID
  5. Enter a Prefix path if your articles are in a subdirectory (e.g., /blog/)
  6. Click Update

Viewing Analytics Data

Once configured, you can view your analytics data:

  1. Go to Google Analytics in the sidebar
  2. Select a date range to analyze
  3. View metrics for your generated articles

Available Metrics

Content Zen displays the following metrics from Google Analytics:

  • Page Views - Total number of page views
  • Sessions - Number of user sessions
  • Users - Unique visitors
  • Engagement Time - Average time spent on pages

Understanding the Prefix

The prefix field helps Content Zen match your analytics data with generated articles. Set it to the URL path where your articles are published:

  • If articles are at example.com/blog/article-title, use prefix /blog/
  • If articles are at the root example.com/article-title, leave prefix empty

Troubleshooting

No Data Showing

  • Verify the service account has Viewer access in GA4
  • Check that the Property ID is correct
  • Ensure the prefix matches your article URLs
  • Data may take 24-48 hours to appear for new articles

Permission Errors

  • Re-upload the JSON key file
  • Verify the Analytics Data API is enabled in Google Cloud
  • Check that the service account email is added to your GA4 property