how does meltano need to be setup with google anal...
# plugins-general
a
how does meltano need to be setup with google analytics to pull data from multiple google analytics view .
d
@atul_kakade Meltano does not currently natively support multiple configuration profiles per tap, but this is high on my list of priorities: https://gitlab.com/groups/meltano/-/epics/51 Until then, you can make it work with environment variables set at runtime when you call
meltano elt
, for example:
Copy code
GOOGLE_ANALYTICS_API_VIEW_ID=123 meltano elt tap-google-analytics ...

GOOGLE_ANALYTICS_API_VIEW_ID=234 meltano elt tap-google-analytics ...
Or you can schedule some pipelines using
meltano schedule
and then override their env vars in
meltano.yml
, e.g.:
Copy code
schedules:
- extractor: tap-google-analytics
  ...
  env:
    GOOGLE_ANALYTICS_API_VIEW_ID: 123
- extractor: tap-google-analytics
  ...
  env:
    GOOGLE_ANALYTICS_API_VIEW_ID: 234
(I intend to document that better: https://gitlab.com/meltano/meltano/-/issues/2031)