Getting view counts based on google/plausible analytics via graphql

Hello!

Was wondering if anyone had any experience pulling down view counts via a call to an API like google or plausible and injecting that into a Strapi graphql response. Main reason being, the ability to filter I.E. “popular articles.” I think I can do this via a custom nextjs API route, but would be really cool if that was a built in controller, like what Strapi has with its REST api.

Appreciate any input!
Thanks,
Dan