I am seeing at the 2 google analytics plugins: <ht...
# plugins-general
d
I am seeing at the 2 google analytics plugins: https://hub.meltano.com/extractors/tap-google-analytics https://hub.meltano.com/extractors/tap-ga4 They both are looking to the same Github repo https://github.com/MeltanoLabs/tap-google-analytics In my YAML I want to have 2 connectors old and new one in this format:
Copy code
plugins:
  extractors:
    - name: tap-ga4
      namespace: tap-ga4
      pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics@v0.0.6>
      executable: tap-google-analytics
but it is not clear how to do it
w
@pat_nadolny would likely know how to handle this
d
I think I found in older message:
Copy code
pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics.git@main_deprecated_ua>
anyone knows the examples for the GA that I can lookup? I know I can add the
select
in the yaml and then add the list of the columns:
Copy code
plugins:
  extractors:
    - name: tap-ga4
      namespace: tap-ga4
      pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics@v0.0.6>
      executable: tap-google-analytics
      config:
        client_id: $GOOGLE_ANALYTICS_CLIENT_ID
        client_secret: $GOOGLE_ANALYTICS_CLIENT_SECRET
        refresh_token: $GOOGLE_ANALYTICS_REFRESH_TOKEN
        access_token: $GOOGLE_ANALYTICS_ACCESS_TOKEN
        property_id: $GOOGLE_ANALYTICS_PROPERTY_ID_GLOBAL
        start_date: "2023-01-01T00:00:00Z"
      capabilities:
        - catalog
        - discover
        - state
      settings:
        - name: start_date
          kind: date_iso8601
        - name: client_id
          kind: string
        - name: client_secret
          kind: password
        - name: refresh_token
          kind: password
        - name: access_token
          kind: password
        - name: property_id
          kind: string
      select:
Or should I use only reports? Plugin has the default
JSON
for reports but it is not super clear how to feed own reports and maybe I can just specify
select
and list of objects.
a
You can provide a path to a json file of your custom report definitions: https://hub.meltano.com/extractors/tap-google-analytics#reports-setting
p
You also shouldn’t need all that metadata like capabilities/settings if you added it from the hub using “meltano add extractor tap-ga4”
d
I am adding manually the