Fetch GA4 Account Information, Properties, and Associated Metadata

This example pipeline demonstrates how to fetch account information, properties, and associated metadata from Google Analytics 4.

  1. Configure the JSON Generator Snap to pass your input data.
    Note: In this example, we are using the JSON Generator Snap. However, you can replace the JSON Generator Snap with any Snap of your choice, such as the File Reader, Worksheet Reader, or Google Directory Read Snap.
  2. Configure the List Accounts Snap with a valid Google Service Account. On validation, the Snap displays the list of Account IDs associated with your Google Service Account.
    List Accounts Snap Configuration List Accounts Snap Output

    List Accounts Snap Configuration


    List Accounts Snap Output

  3. Configure the Mapper Snap to extract relevant account details. On validation, the Snap displays the output based on the specified mappings.
    Mapper Snap Configuration Mapper Snap Output

    Mapper Snap Configuration


    Mapper Snap Output

  4. Configure the List Properties Snap with the previously retrieved valid Account ID. Select the Pass through checkbox to ensure that the input document from the Upstream Snap is passed to the output view, under the key 'original'. On validation, the Snap displays list of property IDs associated with your specified Account ID.
    List Properties Snap Configuration List Properties Snap Output

    List Properties Snap Configuration


    List Properties Snap Output

  5. Configure the Mapper Snap to extract relevant account and property details. On validation, the Snap displays the output based on the specified mappings.
    Mapper Snap Configuration Mapper Snap Output

    Mapper Snap Configuration


    Mapper Snap Output

  6. Configure the Get Metadata Snap with the previously retrieved Account ID and Property ID. On validation, the Snap displays the list of metrics and dimensions associated with your specified Account ID and Property ID.
    Get Metadata Snap Configuration Get Metadata Snap Output

    Get Metadata Snap Configuration


    Get Metadata Snap Output

To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts, as applicable.
  3. Provide pipeline parameters as applicable.