Smaply Helpdesk
  • WELCOME
  • Getting Started
    • Sign up for a free account
    • Join by invitation
    • Switching between accounts
    • First steps in Smaply
    • Smaply: a visual walkthrough
    • Get started videos
  • Journey map editor
    • Feature overview
      • Lanes, columns and cards
      • Card type: Icon card
      • Card type: Link Journey Map
      • Lane type: Emotion chart
      • Lane type: Grid
    • Filters and views
    • Enhanced pasting functionality
    • Share journey maps
      • Invite users directly to journeys
      • HTML sharing of journey maps
    • Exporting journey maps
    • Keyboard shortcuts
  • Dashboard
    • Dashboard
    • Table actions
      • Filtering in dashboard lists
      • Saved views
      • Bulk actions
      • Copy assets across workspaces
      • Deleting journey maps
    • Personas
    • Templates
  • Portfolio
    • Opportunities, pain points, solutions
    • Portfolio matrix
  • Integrations
    • Metrics tools
      • Office 365 Excel
        • Configuring the Office 365 Excel integration
          • Setup service account for O365 Excel
          • Setup O365 Excel using Microsoft account (oAuth)
        • Using the O365 Excel integration in a metric
      • Google Analytics
        • Configuring the Google Analytics integration
        • Creating Google Service Account
        • OAuth Authentication for Google Analytics
        • Service account troubleshooting
      • PowerBI
        • Configuring the PowerBi Integration
          • Set up Service Account for PowerBI
            • Setup verification tool
          • Set up PowerBi using Microsoft account (OAuth)
        • Using the Power BI integration in a Metric
        • Getting up and running with PowerBI
      • Metric integration FAQs
    • Planning tools
      • Trello
        • Configure Trello with an api key
      • Asana
        • Configuring Asana using a Personal access token
      • Azure DevOps
        • Configuring Azure Devops with a personal token
      • Linear
        • Configuring Linear with Personal API key
      • Jira
        • Configuring JIRA with an api key
    • Embedding external content
  • Metrics
    • Introduction to metrics
    • Types of metrics
      • Series metrics
        • Create a series metric
      • Number metrics
        • Create a number metric
      • Comparison metrics
        • Create a comparison metric
    • Setting up metrics
  • Planning Items
    • Planning item overview
    • Adding a planning item
  • Account settings
    • Upgrade, downgrade or delete your account
    • Access levels and permissions
    • User management
    • Taxonomy
    • Tags
  • Learning resources
    • Video tutorial
    • Blog
    • Books
  • RELEASE NOTES
    • 2025
      • May
      • April
      • March
      • February
      • January
    • 2024
      • December
      • November
      • October
      • September
Powered by GitBook
On this page
  • Steps to create and configure service account​
  • Troubleshooting​
Export as PDF
  1. Integrations
  2. Metrics tools
  3. Google Analytics

Creating Google Service Account

This article goes into the details of how to set up a Google Analytics service account in Smaply and offers step-by-step instructions to do so.

PreviousConfiguring the Google Analytics integrationNextOAuth Authentication for Google Analytics

Last updated 7 months ago

A service account acts as a virtual user for your application, allowing secure, programmatic access to Google Analytics data without using personal credentials.

Steps to create and configure service account

1. Create a Google Cloud project (if not already done)

  1. Go to the Google Cloud Console:

  2. Click on "Select a project" > "New Project"

  3. Enter a project name and click "Create"

  4. Give it a sensible name like "Smaply-GA"

Tip: Creating a dedicated Google Cloud Project for Smaply allows you to keep all related API access and settings in one place. This makes it easier to manage permissions and track usage specific to your Smaply integration.

2. Enable the Google Analytics data API

  1. In your Google Cloud project, go to "APIs & Services" > "Library"

  2. Search for "Google Analytics Data API"

  3. Click on the API and then click "Enable"

  4. Do the same for the Google Analytics Admin API

Important: Enabling the API is crucial for accessing GA4 data. Make sure you've completed this step before proceeding.

3. Create a service account

  1. In the , navigate to "IAM & Admin" > "Service Accounts"

  2. Click "Create Service Account"

  3. Enter a name and description for your service account

  4. Click "Create and Continue"

  1. In the "Service account permissions" section, add the following role:

    • "Viewer" (for read-only access) or "Editor" (for read-write access)

  2. Click "Continue" and then "Done"

Security Tip: Always follow the principle of least privilege. Grant only the permissions necessary for your intended use case.

  1. Find your newly created service account in the list

  2. Click on the service account name

  3. Go to the "Keys" tab

  4. Click "Add Key" > "Create new key"

  5. Choose "JSON" as the key type

  6. Click "Create" to download the key file

  1. Navigate to Admin > Property > Property Access Management

  2. Click the "+" button to add a new user

  3. Enter the service account email address (found in the key file or service account details)

  4. Assign the appropriate role (e.g., Viewer or Editor)

  5. Click "Add" to save the changes

Tip: If you need access to multiple GA4 properties, you can repeat this step for each property or use Google Analytics account-level access for broader permissions.

If you encounter issues during the OAuth process or property verification:

  1. No properties available: Ensure your Google account has access to at least one Google Analytics property

  2. Insufficient permissions: Check your access level in Google Analytics. You need at least "Read & Analyze" permissions for the properties you want to integrate

4. Grant permissions

5. Create and download the key file

6. Grant access in Google Analytics

Troubleshooting

​
​
​
​
Google Cloud Console
​
​
​
Log in to your Google Analytics account
​