# Offline UTM Linter

Check local CSV URLs and naming consistency without a credential or network request to a destination.

Source: https://linkdevi.com/docs/utm-linter
Updated: 2026-11-28

## Use the published 0.2.0 package

Use Node.js 22 or newer. Version 0.2.0 is published on npm and was independently installed and tested from the registry. Matching public source is tagged v0.2.0. Package checks and packed-consumer installation passed on Node 22 and 24 in GitHub Actions.

```bash
npm install @kgma/linkdevi-tools@0.2.0
npx --no-install linkdevi utm lint links.csv --format json
npx --no-install linkdevi utm lint links.csv --format github --strict
```

```csv
url
https://example.com/launch?utm_source=facebook&utm_medium=social&utm_campaign=launch
https://example.com/launch?utm_source=line&utm_medium=messaging&utm_campaign=launch
```

- [Published npm version](https://www.npmjs.com/package/@kgma/linkdevi-tools/v/0.2.0)

## What it checks

- Required utm_source, utm_medium and utm_campaign; blank values and repeated parameter names including case variants.
- Invalid HTTP(S) URLs, embedded credentials and decoded control characters.
- UTM key capitalization, unknown UTM names, whitespace and inconsistent source naming across rows.
- Repeated destination/tracking combinations when query parameter order is ignored. Different fragments or parameter values remain distinct; review warnings before changing anything.

Inputs are limited to 100 URLs and a 256 KiB CSV. JSON reports contain row numbers and fixed issue messages, omitting destination URLs and parameter values. The linter does not fetch destinations, call LinkDevi, use a model, create resources or require an API key. It does not establish reachability, safety, analytics attribution or conversion accuracy.

Errors exit with status 1. Warnings fail only with --strict. Use json, text or github output. The installed package includes examples/github-actions/utm-lint.yml; an unchanged copy passed a hosted GitHub Actions run on the v0.2.0 source commit. Adapt the CSV path and enable it deliberately in your own repository.

- [Public 0.2.0 source and release](https://github.com/kgma-glitch/linkdevi-tools/releases/tag/v0.2.0)
- [Package CI on Node 22 and 24](https://github.com/kgma-glitch/linkdevi-tools/actions/runs/46118899437)
- [Hosted example workflow](https://github.com/kgma-glitch/linkdevi-tools/actions/runs/46118943667)
