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.