How to track multilingual button clicks in Yandex.Metrica with organization data?

I’m working on a multilingual website (with ru and uz locales) and trying to implement click tracking in Yandex.Metrica.

When a user clicks the “Show phone number” button on a university’s profile card, I want to send the following data to Metrica:

  • Organization name (e.g., “ABC University”)
  • Category (e.g., “university”, “school”, etc.)
  • Language (ru or uz)

Here’s what I’d like to achieve:

  • Count total clicks per organization, across all languages

  • Group reports by language, category, and organization

    const myParams = {
      [language]: {
        [organization.category]: organization.name[language]
      },
    };
    
    (window as any).ym?.(103200533, "reachGoal", "phone-click", myParams);