Skip to content

Add the AnyTrack skill to Lovable so the Lovable agent sets up AnyTrack conversion tracking in your app: the Tracking Tag, the events of your funnel, the visitor's email, and the Click ID for your CRM and Stripe.

The AnyTrack skill teaches the Lovable agent how to set up AnyTrack in your app. Add the skill one time. Then ask Lovable to add AnyTrack tracking, and the agent follows the AnyTrack setup steps instead of guesswork.

The skill tells the Lovable agent to:

  • Pass the AnyTrack Click ID with every lead. Each form, quiz, sign-up, or booking request sends the Click ID to the place that stores the lead: your CRM, your database, or a webhook. Your CRM conversions then match the ad click and the website session.
  • Apply the AnyTrack Stripe prompt to your Stripe checkout, so each payment carries the Click ID. See Stripe.
  • Ask you a short list of questions before it changes code: your Property ID, your CRM, your payment tool, and your ad platforms.
  • Install the Tracking Tag one time, in the head of every page.
  • Leave automatic tracking to the Tracking Tag. The Tracking Tag sends a PageView on each route change, so the agent adds no router code. See Single Page App Tracking.
  • Propose an event plan for your funnel, with standard events where they fit, and ask you to name your custom events. For example, the agent can name each quiz step QuizStep - Personal details.
  • Send the visitor’s email as refId at the first step that collects it, so later conversions can match the ad click. See External ID as Click ID.
  • Add the customer data that your forms collect to each event. See Event Attributes.
  • Send FormSubmit on the final form submit, and the custom event that you ask for.
  • Write the Click ID to the field that your CRM uses. See Pass the Click ID from External Forms to Your CRM.
  • List the other pixels and tag managers in your app, so you can remove the ones that send duplicate data.

Both links contain the same skill. The skill name is anytrack-tracking.

Pick one of the two methods. A workspace skill is available to every project and every editor in the workspace. A personal skill is available only to you.

  1. Download the ZIP file.
  2. In Lovable, open Workspace settings, then Skills.
  3. Click Add, then select Upload ZIP.
  4. Drag the ZIP file into the window, or browse to it.
  5. Lovable checks the file and adds the skill to your workspace.
  1. Download the ZIP file.
  2. In Lovable, open Account settings, then Personal skills.
  3. Select the workspace at the top of the page.
  4. Open the menu next to Add skill, then select Import skills.
  5. Select the ZIP file.

Use this method if you cannot upload a file.

  1. Open the skill as text, and copy all of the text below the second --- line.
  2. In Lovable, open Workspace settings, then Skills. Click Add, then select Write manually.
  3. In Name, enter anytrack-tracking.
  4. In Description, paste the description line from the top of the skill.
  5. In Content, paste the text that you copied.
  6. Click Add skill.

The skill covers your app. The AnyTrack Docs MCP gives the Lovable agent the setup guide of each integration. The guides cover CRMs, form tools, booking tools, Stripe, and ad platforms. Connect it in Lovable too. The skill tells the agent to search the docs before it writes code for an integration. If the Docs MCP is not connected, the agent recommends it at the start of the interview, with the setup steps.

  1. Open your project in Lovable.
  2. In the project chat, type / and select anytrack-tracking.
  3. Write your request after the skill, for example: Set up AnyTrack tracking for this app. Here is my Tracking Tag: <paste the tag>.
  4. Answer the agent’s questions.
  5. Review the event plan and the list of files. Ask for changes, then approve.
  6. Publish the app, then verify the setup (next section).

Lovable can also apply the skill automatically when your request is about AnyTrack tracking. The skill also applies when you later ask Lovable to add a form, a quiz, a sign-up, or a checkout. To make sure, write Apply the anytrack-tracking skill to the new form in your request.

  1. Open the published app with the Pixel Helper extension. The extension shows your Property ID.
  2. Go to three pages of the app. The Conversions Report shows one PageView for each page.
  3. Go through your funnel with a new email address. The Conversions Report shows each event of the event plan one time.
  4. Open the lead in your CRM. The Click ID field holds a value that starts with your Property ID.
  5. Make a test payment in Stripe test mode. The payment shows atclid in its metadata.
  6. Map each custom event in Event Mapping before an ad platform uses it.
  7. If your CRM is connected in AnyTrack, the CRM integration also records the lead. For example, the HubSpot integration tracks each new contact as Lead. In each ad platform, use FormSubmit or the CRM Lead as the lead conversion, not both.

FAQ & Troubleshooting

FAQ was last reviewed on 2026-11-17

Does the skill install anything in my published app?
No. The skill is a set of instructions for the Lovable agent. The agent adds the Tracking Tag and the tracking code to your project. You review the changes before you publish.
Why does the skill send FormSubmit from code?
The skill sends FormSubmit with the visitor's email as refId and the customer data of the form. The Tracking Tag can also send an automatic FormSubmit: for a form with a --CLICK-ID-- hidden field, and for a POST form when Catch-all Events, Form Submit is on. So the agent adds no hidden field, and it adds the class at-do-not-track to the form. The class stops the automatic event, and AnyTrack records each submit one time. The agent reads the Click ID with AnyTrack('atclid') and sends it to your backend and your CRM.
Why does the agent not add a PageView to my routes?
The Tracking Tag sends a PageView on each route change and does not remove duplicates. Router code that calls AnyTrack('PageView') records a second PageView. The one exception is a hash router, with routes after a # sign. See Single Page App Tracking.
I added a new quiz after the setup. Does it pass the Click ID?
Yes, when Lovable applies the skill to the request. The skill tells the agent to carry the Click ID from each new form, quiz, or sign-up to its destination. The agent also adds the new lead path to its list. To make sure, write Apply the anytrack-tracking skill to the new quiz in your request. Then submit the quiz with a new email, and open the lead in your CRM. The Click ID field holds a value that starts with your Property ID.
My app uses Stripe. Does the agent send Purchase from the browser?
No. The Stripe integration records the payment on the server. The skill contains the AnyTrack Stripe prompt. The agent applies it to your Stripe checkout, so each payment carries the Click ID. A Purchase from the browser would count each sale two times.
Can I use the skill with Claude Code or another AI tool?
The skill uses the SKILL.md format of Agent Skills, which Claude also reads. The instructions target Lovable apps. For other tools, connect the AnyTrack Docs MCP.