Add the AnyTrack Skill to Lovable
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
PageViewon 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
refIdat 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
FormSubmiton 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.
Download the skill
Section titled “Download the skill”- Download the skill as a ZIP file (for Upload ZIP).
- Open the skill as text (for Write manually).
Both links contain the same skill. The skill name is anytrack-tracking.
Add the skill to Lovable
Section titled “Add the skill to Lovable”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.
Add a workspace skill (Upload ZIP)
Section titled “Add a workspace skill (Upload ZIP)”- Download the ZIP file.
- In Lovable, open Workspace settings, then Skills.
- Click Add, then select Upload ZIP.
- Drag the ZIP file into the window, or browse to it.
- Lovable checks the file and adds the skill to your workspace.
Add a personal skill
Section titled “Add a personal skill”- Download the ZIP file.
- In Lovable, open Account settings, then Personal skills.
- Select the workspace at the top of the page.
- Open the menu next to Add skill, then select Import skills.
- Select the ZIP file.
Write the skill manually
Section titled “Write the skill manually”Use this method if you cannot upload a file.
- Open the skill as text, and copy all of the text below the second
---line. - In Lovable, open Workspace settings, then Skills. Click Add, then select Write manually.
- In Name, enter
anytrack-tracking. - In Description, paste the
descriptionline from the top of the skill. - In Content, paste the text that you copied.
- Click Add skill.
Connect the AnyTrack Docs MCP
Section titled “Connect the AnyTrack Docs MCP”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.
Run the skill
Section titled “Run the skill”- Open your project in Lovable.
- In the project chat, type
/and select anytrack-tracking. - Write your request after the skill, for example:
Set up AnyTrack tracking for this app. Here is my Tracking Tag: <paste the tag>. - Answer the agent’s questions.
- Review the event plan and the list of files. Ask for changes, then approve.
- 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.
Verify the setup
Section titled “Verify the setup”- Open the published app with the Pixel Helper extension. The extension shows your Property ID.
- Go to three pages of the app. The Conversions Report shows one
PageViewfor each page. - Go through your funnel with a new email address. The Conversions Report shows each event of the event plan one time.
- Open the lead in your CRM. The Click ID field holds a value that starts with your Property ID.
- Make a test payment in Stripe test mode. The payment shows
atclidin its metadata. - Map each custom event in Event Mapping before an ad platform uses it.
- 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, useFormSubmitor the CRMLeadas the lead conversion, not both.
FAQ & Troubleshooting
FAQ was last reviewed on 2026-11-17
Does the skill install anything in my published app?
Why does the skill send FormSubmit from code?
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?
I added a new quiz after the setup. Does it pass the Click ID?
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.