Integrate Google Analytics

Integrate with Google Analytics to monitor traffic via your configured microapp. Acting as a news aggregator, Citrix Workspace Microapps allows users to track traffic in a single place, removing the need to manually check your analytics via website. After you complete this process, your existing level of audit logging persists, including any actions carried out by the use of Citrix Microapps.

For a comprehensive list of out-of-the-box Google Analytics microapps, see Use Google Analytics microapps.

Review prerequisites

These prerequisites assume you administer the Google Analytics instance of your organization to set up the integration. You must have these details to add the integration in Citrix Workspace Microapps:

  • Google Analytics account
  • Client ID and Secret
  • View ID
  • OAuth 2.0 authorization credentials

Add callback URLs

Add a custom URL to your instance configuration to grant access to private data and enable OAuth authenticated user actions. Log in to Google Analytics as an admin and add the following authorized redirect URLs for this integration:

  • https://{yourmicroappserverurl}/admin/api/external-services/com.sapho.services.googleanalytics.GoogleAnalyticsService/auth/serverContext
  • https://{yourmicroappserverurl}/app/api/auth/serviceAction/callback

Add the integration to Citrix Workspace Microapps

Add the Google Analytics integration to Citrix Workspace Microapps to connect to your application. This delivers out-of-the-box microapps with pre-configured notifications and actions which are ready to use within your Workspace.

Follow these steps:

  1. From the overview page, select Get Started.

    The Manage Integrations page opens.

  2. Select Add New Integration, and Add a new integration from Citrix-provided templates.
  3. Choose the Google Analytics tile.
  4. Enter a name for the integration.

    Google analytics connector parameters, ID, Secret, View ID, Max. number of days of stats

  5. Enter the Connector parameters that you collected in the previous procedures:
    • Enter the Client ID and Client Secret.
    • Enter the View ID.
    • Enter the Max Number of Days of Stats (default 30).
  6. Toggle Use User OAuth Authorization in Actions if necessary.
  7. Select Log in with your Google Analytics account to enable OAuth Authorization. A Google sign-in page opens in a new tab. You are prompted to enter an account name, enter a password, and confirm access.
  8. Select Add.

The Microapp Integrations page opens with your added integration and its microapps. From here you can add another integration, continue setting up your out-of-the-box microapps, or create a new microapp for this integration.

You are now ready to set and run your first data synchronization. As a large quantity of data can be pulled from your integrated application to the Microapps platform, we recommend you use the Table page to filter entities for your first data synchronization to speed up synchronization.

For more information, see Verify needed entities and Set data synchronization in the Configure the integration article.

For more details of API endpoints and table entities, see Google Analytics connector specifications.

Use Google Analytics microapps

Existing application integrations come with out-of-the-box microapps. Start with these microapps and customize them for your needs.

Google analytics microapps

Our Google Analytics integration comes with the following preconfigured out-of-the-box microapps:

Session Metrics: View sessions and session metrics.

Notification or Page Use-case workflows
Daily Sessions Decreased notification When the number of daily sessions decreases by a defined amount (by default, 10%), users receive a notification.
Daily Sessions Increased notification When the number of daily sessions increases by a defined amount (by default, 10%), users receive a notification.
Weekly Sessions Decreased notification When the number of weekly sessions decreases by a defined amount (by default, 10%), users receive a notification.
Weekly Sessions Increased notification When the number of weekly sessions increases by a defined amount (by default, 10%), users receive a notification.
Sessions page Provides a list of all sessions.

User Metrics: View user metrics.

Notification or Page Use-case workflows
Daily Users Decreased notification When the number of daily users decreases by a defined amount (by default, 10%), users receive a notification.
Daily Users Increased notification When the number of daily users increases by a defined amount (by default, 10%), users receive a notification.
Weekly Users Decreased notification When the number of weekly users decreases by a defined amount (by default, 10%), users receive a notification.
Weekly Users Increased notification When the number of weekly users increases by a defined amount (by default, 10%), users receive a notification.
Users page Provides a list of all user metrics.