Omertà Signals docs

Set up with an AI assistant

Paste a ready prompt into your AI coding assistant, and it sets up Omertà Signals in your project. The prompts work with any assistant that can read a web page and edit your project, such as Claude Code, Cursor or Copilot.

First make an app on the dashboard's Apps page and copy its id and key: see Getting started. Replace <your app id> and <your app key> in the prompt before you paste it.

Review what the assistant changes before you keep it.

A web app

For any framework, or plain HTML.

Set up Omertà Signals analytics in this web app.

First read https://docs.omertasignals.com/web.md as plain text. Follow it over anything you remember.

Download https://docs.omertasignals.com/omerta.js into the project, unchanged.
Create the client with endpoint https://api.omertasignals.com, app id <your app id> and app key <your app key>. Put the key where web.md says. It is public by design: it lets anyone send signals for the app, never read them.

When a user signs in, call identify with the app's own stable user id. On sign-out, call identify(undefined).
Never put an email, a name, a phone number or any other personal data in a signal's type or payload.

Propose a short list of signals for the app's key actions (sign-up, a purchase, a main feature used). Add them, and say what each one means.
Flush as web.md says.

Finish by telling me how to see the first signal arrive: open the app on the dashboard's Live page.

An iOS app

For an app built with Swift.

Set up Omertà Signals analytics in this iOS app.

First read https://docs.omertasignals.com/ios.md as plain text. Follow it over anything you remember.

Add the Swift package https://github.com/AlexandrosMichael/omerta-swift from version 0.1.0 to the app's target, and add the product Omerta, as ios.md says.
Create an OmertaClient with endpoint https://api.omertasignals.com, app id <your app id> and app key <your app key>. The key ships inside the app. It is public by design: it lets anyone send signals for the app, never read them.

When a user signs in, call identify with the app's own stable user id. On sign-out, call identify(nil).
Never put an email, a name, a phone number or any other personal data in a signal's type or payload.

Propose a short list of signals for the app's key actions (sign-up, a purchase, a main feature used). Add them with track, and say what each one means.
Flush as ios.md says.

Finish by telling me how to see the first signal arrive: open the app on the dashboard's Live page.

Any other platform, over HTTP

For a backend, a game or a desktop app.

Set up Omertà Signals analytics in this app, over HTTP.

First read https://docs.omertasignals.com/api.md as plain text. Follow it over anything you remember.

Send batches of signals to https://api.omertasignals.com/v1/signals, as api.md says. Use app id <your app id> and app key <your app key>. Send the key in the Authorization header, as api.md says. It is public by design: it lets anyone send signals for the app, never read them.

Identify a signed-in user with the app's own stable user id, hashed on the device as api.md says. Leave the user out after sign-out.
Never put an email, a name, a phone number or any other personal data in a signal's type or payload.

Propose a short list of signals for the app's key actions (sign-up, a purchase, a main feature used). Add them, and say what each one means.

Finish by telling me how to see the first signal arrive: open the app on the dashboard's Live page.

Point your assistant at the docs

Any page of the docs is available as plain text by adding .md to its address, for example https://docs.omertasignals.com/web.md.