Forum Discussion

ramon0101's avatar
ramon0101
New Member
9 years ago

Combine multiple accounts GA with advanced editor in one query

Hi,

I would like to combine multiple accounts that I have in GA with advanced editor in one query. The dimensions and metrics will remain the same. Is this possible? How would I need to write my code?

Kind regards,
Ramon

1 Reply

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Icon for Community Support rankCommunity Support

    Hi ramon0101,

     

    Based on my test, if the same Google Analytics email has two accounts, it's not able to retrieve data from those two accounts in one query. You can see if I already check dimensions and metrics under one account, then check another account's dimensions and metrics, the error will throw out like below:

     

     

    And in Query Editor, we can only add the current account's items via Add Items. See:

     

     

    In your scenario, you can create two queries to connect to separate account, then merge or append the query in Query Editor.

     

     

    Best Regards,
    Qiuyun Yu