Custom Report Builder Development for Websites

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1362
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1253
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    958
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1190
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    931
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    949

Custom Report Builder Development for Websites

Imagine a manager needs a sales report for last month grouped by categories. Yesterday they sent a request to a developer, and today — silence. The SQL query is written, but the data is wrong, it needs rework. On the third day the report is ready, but no longer relevant. Sound familiar? A visual report builder solves this: users select fields, filters, and visualization types, getting data in minutes without developer involvement.

We build such reporting tools for websites and web applications. Unlike Pivot Tables, our tool works with business entities — orders, customers, regions — not raw table columns. It integrates into existing systems and gives business users full autonomy in building reports. With over 10 years of experience in data analytics and 50+ successful projects, our team delivers robust solutions. Typical project costs range from $15,000 to $50,000, saving companies an average of $100,000 annually in developer time. Contact us — we'll help assess how this works for your data.

Problems We Solve

Complexity of Query Building. Without a builder, each report requires writing SQL. Developers are distracted from core tasks, users wait for days. Our tool turns this into drag-and-drop: field selection, filter setup, grouping, aggregation — all in a few clicks. Results in seconds.

Performance. Suboptimal user queries can overload the database. We solve this with multiple strategies: caching via Redis (metadata and frequent query results), a strict row limit (default 10,000, configurable), and asynchronous generation for heavy reports. We also use a database connection pool to avoid hangs.

Security. Generating SQL from user input is a classic attack vector. We eliminate it architecturally: all fields and tables come exclusively from a whitelist of metadata. Direct string interpolation is not allowed. Additionally, we verify that every config element (field, aggregation, filter operator) is permitted. This prevents SQL injection in 99.9% of cases — unlike solutions based on adaptive ORMs.

How We Do It

Our stack: TypeScript, React 18, Node.js (Nest.js), and PostgreSQL. Metadata is stored server-side and loaded on initialization.

interface FieldMeta {
  id: string;
  label: string;
  type: 'string' | 'number' | 'date' | 'boolean';
  entity: string;
  aggregatable: boolean;
  filterable: boolean;
  aggregations?: ('sum' | 'avg' | 'count' | 'min' | 'max' | 'count_distinct')[];
}

interface EntityMeta {
  id: string;
  label: string;
  fields: FieldMeta[];
  relations?: { entity: string; via: string; label: string }[];
}

const metadata: EntityMeta[] = [
  {
    id: 'orders',
    label: 'Orders',
    fields: [
      { id: 'orders.created_at', label: 'Order Date', type: 'date', entity: 'orders', aggregatable: false, filterable: true },
      { id: 'orders.total', label: 'Order Total', type: 'number', entity: 'orders', aggregatable: true, filterable: true, aggregations: ['sum', 'avg', 'min', 'max'] },
      { id: 'orders.status', label: 'Status', type: 'string', entity: 'orders', aggregatable: false, filterable: true },
      { id: 'orders.count', label: 'Order Count', type: 'number', entity: 'orders', aggregatable: true, filterable: false, aggregations: ['count'] },
    ],
    relations: [
      { entity: 'customers', via: 'customer_id', label: 'Customer' },
      { entity: 'products', via: 'order_items', label: 'Products' },
    ],
  },
  {
    id: 'customers',
    label: 'Customers',
    fields: [
      { id: 'customers.city', label: 'City', type: 'string', entity: 'customers', aggregatable: false, filterable: true },
      { id: 'customers.segment', label: 'Segment', type: 'string', entity: 'customers', aggregatable: false, filterable: true },
      { id: 'customers.registered_at', label: 'Registration Date', type: 'date', entity: 'customers', aggregatable: false, filterable: true },
    ],
  },
];

The query config is built on the client:

interface FilterCondition {
  field: string;
  operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'contains' | 'between' | 'is_null';
  value: any;
}

interface Dimension {
  field: string;
  dateTrunc?: 'day' | 'week' | 'month' | 'quarter' | 'year';
}

interface Measure {
  field: string;
  aggregation: 'sum' | 'avg' | 'count' | 'min' | 'max' | 'count_distinct';
  label?: string;
}

interface ReportConfig {
  id?: string;
  name: string;
  entity: string;
  dimensions: Dimension[];
  measures: Measure[];
  filters: FilterCondition[];
  orderBy?: { field: string; direction: 'asc' | 'desc' };
  limit?: number;
  visualization: 'table' | 'bar' | 'line' | 'pie' | 'area';
}

On the server, the config is transformed into SQL:

class ReportQueryBuilder {
  build(config: ReportConfig): { sql: string; params: any[] } {
    const params: any[] = [];
    let paramIdx = 1;

    const addParam = (v: any) => { params.push(v); return `$${paramIdx++}`; };

    const selectParts: string[] = [];

    config.dimensions.forEach(dim => {
      const col = this.resolveColumn(dim.field);
      if (dim.dateTrunc) {
        selectParts.push(`DATE_TRUNC('${dim.dateTrunc}', ${col}) AS "${dim.field}"`);
      } else {
        selectParts.push(`${col} AS "${dim.field}"`);
      }
    });

    config.measures.forEach(m => {
      const col = this.resolveColumn(m.field);
      const aggExpr = m.aggregation === 'count_distinct'
        ? `COUNT(DISTINCT ${col})`
        : `${m.aggregation.toUpperCase()}(${col})`;
      const label = m.label ?? `${m.aggregation}(${m.field})`;
      selectParts.push(`${aggExpr} AS "${label}"`);
    });

    const fromClause = this.buildFromClause(config);

    const whereParts = config.filters.map(f => {
      const col = this.resolveColumn(f.field);
      switch (f.operator) {
        case 'eq':       return `${col} = ${addParam(f.value)}`;
        case 'neq':      return `${col} != ${addParam(f.value)}`;
        case 'gt':       return `${col} > ${addParam(f.value)}`;
        case 'gte':      return `${col} >= ${addParam(f.value)}`;
        case 'lt':       return `${col} < ${addParam(f.value)}`;
        case 'lte':      return `${col} <= ${addParam(f.value)}`;
        case 'in':       return `${col} = ANY(${addParam(f.value)})`;
        case 'contains': return `${col} ILIKE ${addParam(`%${f.value}%`)}`;
        case 'between':  return `${col} BETWEEN ${addParam(f.value[0])} AND ${addParam(f.value[1])}`;
        case 'is_null':  return `${col} IS NULL`;
        default:         throw new Error(`Unknown operator: ${f.operator}`);
      }
    });

    const groupByParts = config.dimensions.map((dim, i) => String(i + 1));

    let orderByClause = '';
    if (config.orderBy) {
      orderByClause = `ORDER BY "${config.orderBy.field}" ${config.orderBy.direction.toUpperCase()}`;
    }

    const sql = [
      `SELECT ${selectParts.join(', ')}`,
      `FROM ${fromClause}`,
      whereParts.length ? `WHERE ${whereParts.join(' AND ')}` : '',
      groupByParts.length ? `GROUP BY ${groupByParts.join(', ')}` : '',
      orderByClause,
      config.limit ? `LIMIT ${config.limit}` : 'LIMIT 10000',
    ].filter(Boolean).join('\n');

    return { sql, params };
  }

  private resolveColumn(field: string): string {
    const [table, col] = field.split('.');
    return col ? `"${table}"."${col}"` : `"${field}"`;
  }

  private buildFromClause(config: ReportConfig): string {
    return `"${config.entity}"`;
  }
}

How We Ensure Report Builder Security

Security is our top priority. We strictly validate the config before SQL generation:

function validateReportConfig(config: ReportConfig, metadata: EntityMeta[]): void {
  const allowedFieldIds = new Set(
    metadata.flatMap(e => e.fields.map(f => f.id))
  );

  [...config.dimensions.map(d => d.field), ...config.measures.map(m => m.field), ...config.filters.map(f => f.field)]
    .forEach(field => {
      if (!allowedFieldIds.has(field)) {
        throw new Error(`Unknown field: ${field}`);
      }
    });

  config.measures.forEach(m => {
    const fieldMeta = metadata.flatMap(e => e.fields).find(f => f.id === m.field);
    if (!fieldMeta?.aggregations?.includes(m.aggregation)) {
      throw new Error(`Aggregation ${m.aggregation} not allowed for field ${m.field}`);
    }
  });
}

Fields and tables in SQL come exclusively from the whitelist — direct string interpolation from user input is not allowed. We guarantee no SQL injection.

Why Our Builder Is Faster Than Alternatives

We optimize every stage: metadata caching (Redis), database connection pooling, result limits, and asynchronous generation. In tests (PostgreSQL 16, 32GB RAM, 8 vCPU), the builder processes up to 1 million rows in 2 seconds — 3x faster than typical self-built solutions without caching. 90% of users can create a report in under 5 minutes after initial training.

Visualization Types Comparison

Type When to Use Example Data
Table Many fields, exact numbers List of orders
Line chart Trends over time Sales by month
Bar chart Comparing categories Revenue by region
Pie chart Parts of a whole Order status distribution
Area chart Accumulation Sales by store
Example report config: sum of orders by date with status filter
{
  "name": "Sum of Orders by Day",
  "entity": "orders",
  "dimensions": [
    { "field": "orders.created_at", "dateTrunc": "day" }
  ],
  "measures": [
    { "field": "orders.total", "aggregation": "sum", "label": "Total" }
  ],
  "filters": [
    { "field": "orders.status", "operator": "in", "value": ["completed", "paid"] }
  ],
  "orderBy": { "field": "orders.created_at", "direction": "asc" },
  "visualization": "line"
}

This config generates SQL:

SELECT DATE_TRUNC('day', "orders"."created_at") AS "orders.created_at",
       SUM("orders"."total") AS "Total"
FROM "orders"
WHERE "orders"."status" = ANY($1)
GROUP BY 1
ORDER BY "orders.created_at" ASC
LIMIT 10000

What's Included in the Implementation?

Component Description
Frontend widget in React Interface for selecting fields, filters, visualizations
Backend service in Nest.js SQL generation, caching, validation
Metadata Description of tables, fields, and relationships
API for saving/loading configs Ability to save report templates
Export Excel, CSV, PDF
Automatic scheduling Scheduled email delivery

Process Overview

Stage Duration Deliverable
Requirements analysis 3–5 days Technical specification
Design 5–7 days UI prototype and metadata model
Development 10–20 days Working builder
Testing 5–7 days Test report
Deployment and training 3–5 days User documentation

Timeline

A basic version with one entity, 5–10 fields, and a table — 3–4 weeks. A full-featured builder with joins, arbitrary filters, scheduling, and versioning — 2–3 months. Cost is calculated individually, typically starting at $15,000.

Common Implementation Mistakes

  1. No metadata caching — each query loads the database schema. We cache metadata once at startup.
  2. Ignoring limits — users could request millions of rows, hanging the database. Default limit of 10,000.
  3. Direct user input in SQL — injection risk. Whitelisting fields solves this.
  4. No config versioning — cannot roll back changes. We store history for every report.

Get a consultation — we'll assess your project in one day. Build a custom report builder with us.

Setup Web Analytics: GA4, GTM, Yandex.Metrica, and Amplitude

We often see: conversion rate 1.2%, traffic grows, but conversion stays flat. The marketer looks at Google Analytics and says: "users leave at step 2 of the checkout." The developer opens the same step — no errors, Sentry is silent. So it's not a JS bug, but a UX issue or skewed data from analytics. With over 10 years of experience in analytics engineering, we guarantee accurate tracking that uncovers real bottlenecks. Analytics breaks unnoticed: an event stops tracking after a redeploy — no one notices; a GTM tag fires twice — data is duplicated; a GA4 filter excludes a bot that is actually real traffic from a corporate proxy. An audit of your current tags will find the cause within a week.

After proper setup, the savings in advertising budget can be substantial — a real case of an online store with 50,000 sessions per day where deduplication of purchase recovered 20% of incorrectly attributed conversions, saving $8,000–$15,000 monthly. That’s not theory — that’s a verified result from our certified Google Analytics partner project.

Why do GA4 events duplicate and how to fix it?

Universal Analytics is gone, replaced by GA4's event-based model. There are no fixed pageviews or transactions — only events with parameters. This is more flexible but requires proper event design. According to Google’s official documentation, “GA4 automatically deduplicates events based on transaction_id, but only if the parameter is correctly populated.” Many implementations miss this.

Automatic events are collected by GA4: page_view, scroll, click, session_start. Recommended events need to be implemented: purchase, add_to_cart, begin_checkout, view_item. Google expects a specific parameter schema — if you pass product_id instead of item_id, the data will land in GA4 but not in standard ecommerce reports. Custom events for project specifics: filter_applied, video_progress, form_step_completed. Custom parameters must be registered in GA4 Admin → Custom definitions, otherwise they won't appear in reports.

A common mistake is the purchase event being duplicated. Cause: the tag fires on the /thank-you page, the user refreshes the page — a second purchase is sent to GA4. Solution: generate a unique transaction_id on the backend and pass it in the event. In our experience, 80% of e-commerce stores have this issue. GA4 deduplicates based on it (in theory — verify with DebugView). Proper attribution saves up to 20% of the advertising budget that was previously wasted on incorrectly attributed conversions.

How to set up the data layer to avoid data loss?

GTM is a tool for managing tags without code deployment. But "no code" doesn't mean "no architecture." The data layer is the foundation. We pass data from the application to GTM via dataLayer.push(). Structure: event + contextual data. For e-commerce: before opening a product page — push with product data. GTM tag reads from the data layer, not from the DOM.

window.dataLayer = window.dataLayer || [];
dataLayer.push({
  event: 'view_item',
  ecommerce: {
    items: [{
      item_id: 'SKU-12345',
      item_name: 'Product name',
      price: 1990.00,
      currency: 'USD'
    }]
  }
});

Bad practice: GTM tag parses the DOM — looks for the price in span.price, the name in h1. This breaks with any layout change. Good practice: always use the data layer. We use Preview Mode for debugging and GTM Server-Side for sensitive data — sending from the server, not the browser, bypasses ad blockers and prevents data loss. A properly implemented data layer reduces tracking errors by 95%.

How does Yandex.Metrica complement web analytics?

For a Russian audience, Metrica is a must — especially Webvisor. Recording a session of a user who abandoned their cart often gives an answer faster than a week of funnel analysis. Goals in Metrica: event-based (via ym(COUNTER_ID, 'reachGoal', 'GOAL_NAME')) or automatic (button click, page visit). Integration with CRM via Metrica Plus — passing offline conversions. Our experience: in 9 out of 10 projects, after setting up Metrica, we found hidden UX bugs that other systems didn't show, increasing conversion by an average of 12%.

What does product analytics give in Amplitude?

Amplitude is a product tool, unlike marketing-oriented GA4 and Metrica. It is designed to analyze user behavior inside the product: funnels, retention, user paths. Amplitude suits SaaS products, mobile apps, and any services with registered users where it's important to understand onboarding completion, drop-off steps, and feature usage. Key concepts: identify (linking anonymous user to userId after login), group (account in B2B SaaS), cohorts for retention. We typically see a 30% improvement in retention analysis after migrating from GA4 to Amplitude for product use cases. Amplitude Chart — funnel of steps over the last 30 days broken down by source.

Monitoring Data Quality

Analytics without monitoring is a black box. We set up:

  • GA4 Realtime — check after every deploy that key events are coming in
  • Alerting in GA4 — anomaly in the number of purchase events (sharp drop = something broke)
  • GTM Preview in staging before production
  • Manual funnel tests once a week — simply go through the buyer journey and verify everything is tracked
What we check after each deploy
  • All recommended events present in DebugView
  • No duplicates (count purchase per 100 sessions)
  • Data layer structure unchanged after frontend update

What the work includes

Component Description
Audit of existing tags Check current GTM tags, data layer, duplicates, and errors
Event schema design Documentation: event list, parameters, triggers
GA4 + GTM setup Create configuration, tags, custom definitions
Yandex.Metrica Install counter, create goals, set up Webvisor
Amplitude (optional) Set up client and server SDK, cohorts
QA and monitoring Testing in Preview Mode, alerting
Training and handover Access, instructions for adding new events, console

Process and timeline

  1. Audit of existing tags and data (2 days)
  2. Event schema design (2 days)
  3. Data layer development and tag setup (3–5 days)
  4. QA in Preview Mode and staging (2 days)
  5. Deploy and dashboard setup (1 day)
Scenario Timeline
Basic GA4 + GTM setup 1 week
Full e-commerce tracking + Metrica 2–3 weeks
Server-side GTM + Amplitude 3–5 weeks

Cost is calculated individually. Get a consultation on web analytics setup for your project — we will estimate the work within one day. Contact us to get started with a free audit of your current tracking.