Skip to main content
Version: 2023.3

Google Services Integration

Menus and buttons may vary depending on the current GUI version

Console - APIs

  • https://console.developers.google.com/project
  • Menu: [+ Create project]
    • Project name: project-sk
  • Menu: Select project
  • Menu: IAM & admin / Service accounts
    • [+ Create service account]
      • Service account name: api_id (email)
      • Role: App Engine / App Engine Viewer
      • [Done]
    • [+ Create service account]
      • Service account name: api_email (email)
      • Role: Project / Viewer
      • Create key (optional): [Create key]
        • Key type: JSON
        • Download json
      • [Done]
  • Menu: APIs & Services / Credentials
    • [+ Create credential] > API key
      • s_api_key > [Restrict key]
        • Name: s_api_key
        • IP addresses (web servers, ...)
        • Add an item: 80.241.1.1
      • b_api_key > [Restrict key]
        • Name: b_api_key
        • HTTP referrers (web sites)
        • Add an item: *.l-project, *.project.sk
  • Menu: APIs & services / Library
    • Google Analytics API > [Enable]
    • Custom Search API > [Enable]

Analytics

  • https://analytics.google.com/
  • Menu: Administrator
    • [Create new account]
      • Account name: project
      • Web
      • Website name: project.sk
      • Website URL: https://www.project.sk/
      • Industry category:
      • Reporting Time Zone:
      • Get Tracking ID: track_id
  • Menu: All website data
    • View settings
      • Search tracking: ON
        • query parameter = q
    • User Management
      • [+] > Add user
        • Add email address = api_email
        • Read and analysis
      • [+] > Add user

Configuring Google Services in Pimcore

APIs

  • copy JSON to /config/pimcore/google-api-private-key.json
  • edit /config/config.yaml or use System Settings in admin interface
    • services/google/client_id = api_id
    • services/google/email = api_email
    • services/google/simple_api_key = s_api_key
    • services/google/browser_api_key = b_api_key

Analytics

  • Pimcore admin menu: Marketing / Marketing settings
    • Tab: Google Analytics
      • Track-ID = track_id
      • Advanced Integration > Profile = All website data
    • Tab: Google Search Console
      • Verification Filename = html_ver