SShortSingh.
Back to feed

Self-hosted vs managed server-side Google Tag Manager: cost and trade-offs compared

0
·15 views

Server-side Google Tag Manager requires a running server, which can be self-hosted on Cloud Run or a Docker-capable server, or rented from a managed provider. Google estimates about US$45 per server monthly and recommends at least two production instances plus a separate preview server. Managed providers such as Stape charge by request volume, with a free tier up to 10K requests and paid plans from US$17 a month as of December 2026. Self-hosting uses Google's official Docker image on a VPS, trading the monthly fee for the effort of maintaining, monitoring and securing the server. The best choice depends on traffic levels, who will maintain the server, and how much control is needed over data and costs.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Most AI Coding Agent Steps Don't Need a Frontier Model, Routing Could Cut Costs

Coding agents spend most of their time reading files, searching code, and summarizing output rather than writing code, yet many use the same expensive model for every step. Research cited in the article found agentic coding consumes over 1,000 times more tokens than a single-turn question, with heavy input-to-output ratios. The author points to OpenAI's pricing, where the flagship model costs 80 times more than the smallest on both input and output. Prior work from Stanford's FrugalGPT and LMSYS/UC Berkeley's RouteLLM showed that routing requests to cheaper models can cut costs substantially while retaining most of the quality. The author proposes assigning cheaper models to lightweight agent roles and escalating to larger models only when needed, while cautioning that routing involves some quality tradeoffs.

0
ProgrammingDEV Community ·

Developer Tries Running PostgreSQL on Android Phone via Termux and Smart IDE

A developer set out to practice with a real database using only an Android phone. Using the Google Play version of Termux, the PostgreSQL client reported version 18.2, but initializing a database cluster failed with a permission denied error. The developer later managed to work with PostgreSQL 18.2 in Smart IDE, creating a database and confirming the connection with a query. The author noted they could not determine the exact cause of the Termux failure or whether another distribution would have worked. The post stresses that verifying initialization, server access, and query execution is needed beyond simply installing software.

0
ProgrammingDEV Community ·

How to crop one headshot that works as both a square profile photo and a round avatar

A square crop can look fine in an editor yet lose details like glasses corners once it is shown in a circular avatar, because the circle hides everything outside its inscribed boundary. The guide explains how to make one square JPEG in GIMP by cropping a portrait you have permission to use, keeping space above the hair and around the shoulders, and framing the eyes near the upper portion of the square. It then shows how to overlay an ellipse selection to check that the hair, ears, glasses and jaw stay inside the circular boundary, and how to scale the result to 512 pixels and export it at quality 90 with metadata removed. Finally, it suggests building a small local HTML proof to view the exported image at two sizes on light and dark backgrounds before uploading.

0
ProgrammingDEV Community ·

Gamepad API checklist for adding controller support to HTML5 browser games

Browser games increasingly need to work with controllers, since players use laptops, TV browsers and handheld PCs with pads already paired. The Gamepad API requires a button press or stick movement before a page sees a pad, so developers should listen for connection events, poll navigator.getGamepads() each frame, and show a prompt on the title screen. Serving the game over HTTPS matters because browsers restrict the API to secure contexts, and button indices should only be trusted when a pad reports the standard mapping. The guide also recommends applying a radial deadzone to sticks, making every menu keyboard-free with consistent focus, and pausing gameplay when a controller disconnects.