# How do I know which customers have used a certain key?

Locksmith does not keep any usage statistics. However this guide suggests some workarounds which might help in certain cases.

## 1. Autotagging

Many of Locksmith's key conditions support a customer auto-tagging feature. When enabled, this feature **automatically adds a tag to any customer who gains access to a resource** in your online storefront, using that particular key condition.

Here's how to find it, using a passcode condition as an example:

![](/files/p9pbI1vYq6W9KtHh9yRb)

Keep in mind that this feature **only works if a customer is signed in** when visiting the locked page. If a visitor is not signed in, Locksmith will not make any record that they used the passcode, secret link, etc.

## 2. Tracking how many times a passcode as been used.

Locksmith allows you to set a usage limit for passcodes, and the number will count down each time the passcode is submitted. If you set it to a very high number to begin with, you can check in on the number to see how much it has been used:

<figure><img src="/files/9oXQw6XHExNF49uMJxar" alt=""><figcaption></figcaption></figure>

Keep in mind that is only works for the single **passcode key condition type (labelled "Permit if customer gives the passcode")**.

The one-of-many passcode key conditions and the passcode-from-input-list key conditions do not work in the same way so it's not possible to use this tactic for them. If you're using more than one passcode, try setting those up in separate keys with a usage limit on each.

## 3. If using secret links and the Mechanic app

If using secret link key condition, it is possible to tag orders that come through after a customer has used a secret link. It's possible to set up a task with [Mechanic](https://mechanic.dev/), our other app, that tags orders with the Locksmith secret link a customer used, when placing an order. Optionally, this task tags the customer as well:\
\
[Tag online orders by ?ls= Locksmith secret link used, with Mechanic](https://tasks.mechanic.dev/tag-orders-by-locksmith-secret-link)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.locksmith.guide/faqs/more/how-do-i-know-which-customers-have-used-a-certain-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
