Data Destination - Google Analytics 4 Measurement Protocol
    • PDF

    Data Destination - Google Analytics 4 Measurement Protocol

    • PDF

    Article summary

    summary

    Help Page for ETL Configuration of Data Setting to Google Analytics 4 Measurement Protocol.

    • Data can be extracted from any Data Source and sent to Measurement Protocol (Google Analytics 4 Measurement Protocol).
    • It is necessary to map the column names and types in TROCCO when creating the ETL Configuration to conform to the Measurement Protocol format.

    constraints

    • API restrictions apply.
    • One event is created per line of input.
      • Multiple inputs cannot be combined to create multiple events.

    supplement

    Data Destination Google Analytics 4 Measurement Protocol does not use Connection Configuration.

    Setting items

    STEP1 Basic settings

    item nameindispensabledefault valueContents
    API SecretYes-Enter the API secret of the data stream.
    For details on how to check, please refer to How to Check Measurement ID and API Secret.
    Measurement IDYes-Enter the measurement ID of the data stream.
    For details on how to check, please refer to How to Check Measurement ID and API Secret.
    Request VerificationYesvalidityWhen enabled, the Measurement Protocol validation server verifies that the format of the event to be sent is correct.
    At this time, if the request contains an event in an invalid format, TROCCO's ETL Job will be marked as Error.
    Note that regardless of whether you choose to enable or disable, the transfer will be performed for events in the correct format.

    STEP2 Detailed settings

    column mapping

    In the Column Setting of STEP 2 of TROCCO, you can send data to the Google Analytics 4 Measurement Protocol by mapping column names and types.
    Match column names and types as shown in the table below.
    For other columns, please refer to the API documentation.

    column nametype (e.g. of machine, goods, etc.)indispensable
    client_idstringYes
    events.namestringYes
    events.params.${parameter name}Any typeNo
    events.params.items.${parameter name}Any typeNo
    user_properties.${parameter name}Any typeNo

    Input Example

    • In the following example input, two offline_purchase events and one search event are created.
      • client_id: x There are two events for, one event is created for each line of input.
    • See the API documentation for details on events and user properties.
    client_idevalueevents.params.search_termevents.params.items.item_idevents.params.items.item_nameuser_properties.customer_tieruser_properties.age
    xoffline_purchaseUSD100nullSKU_12345Stan and Friends Teestandardnull
    xoffline_purchaseUSD200nullSKU_67890pN and Friends Teestandardnull
    ysearchnullnullt-shirtsnullnullpremium30

    How to confirm measurement ID and API secret

    The following steps can be taken to check.

    1. From the Google Analytics 4 home screen, click Manage
      image

    2. Select any property and click on Data Stream
      image

    3. Click on any data stream
      image

      You can check the measurement ID.

    4. Click on Measurement Protocol API secret
      image

      You can check the value of the API secret.
      image


    Was this article helpful?