Case study

Branded QR codes for sample packaging

A command-line tool that makes branded QR codes for sample packaging, with short links that can change after printing.

Context

The client is a cosmetics retailer that sells through its web store, its app and its own stores. It wanted QR codes on the packaging of its sample products.

Our role

We partnered with the client’s architecture team, built the generator and added tests for the redirects, which other teams own.

Problem

  • A printed code cannot change, so the link behind it must keep working when pages change.
  • The codes had to match the brand, with its colours and logo.
  • Each product needed its own code.

What we did

  1. Generator (February 2026). We built a command-line tool that reads a CSV file or a list of URLs. For each row, it makes a QR code in SVG and PNG in the brand colours, with an optional logo in the middle, and it also writes a table that maps each code to its link.
  2. Short links. Each code holds a short link on the client’s domain, and a redirect sends that short link to the target page. Until a target is set, the link goes to the home page, and the target can change after the packaging is printed.
  3. First use. The first batch covered 16 codes for 15 sample products.
  4. Tracking (September 2026). The links got UTM parameters so that visits from the packaging show up in analytics.
  5. Tests (November 2026). We added synthetic tests in Datadog that check the redirects of the short links.
Let's connect

Talk about your project

Tell us about your team and your problem. In 30 minutes we find out whether one of our offers fits, and if none does, we tell you.

Book a 30-minute call