DataAugust 2023·GoodData Developers·8 min read

What Is Analytics as Code?

Analytics as CodeDataOpsBI Engineering

Why I wrote this

I wrote this piece to distill the emerging 'as Code' movement for data teams who were still stuck in drag-and-drop BI tools. The idea that analytics pipelines deserve the same engineering rigor as application code was still controversial in 2023, but the industry has since moved decisively in that direction.

Summary

Analytics as Code applies software engineering best practices (version control, CI/CD, code review, and modularity) to analytics workflows. Instead of clicking through a BI tool's UI, teams define dashboards, metrics, and transformations as declarative code that can be tested, versioned, and deployed like any other software artifact.

Key Takeaways

  • 01Version control for analytics: track every change to dashboards and metrics in Git, enabling rollback and audit trails.
  • 02CI/CD pipelines for BI: automate testing and deployment of analytics changes to catch breaking metric definitions before they reach production.
  • 03Reusability over duplication: modular, code-defined metrics eliminate the copy-paste problem that causes metric drift across teams.

2026 Perspective

In 2026, Analytics as Code has become the default expectation rather than the exception. With AI-assisted data engineering tools now generating SQL and transformation logic, code-defined analytics serve a dual purpose: engineering discipline and machine-readable documentation. If your metrics live in code, an LLM can actually read them and answer business questions accurately instead of hallucinating definitions. Teams that invested in this approach early are seeing that payoff now.