Share the link
Open your form and copy its link from the top of the builder, or from the forms list. Links look like https://f.agent002.net/f/k7m2p9qrst, and work in emails, social posts and QR codes.
Embed it in a page
- Publish the form, then open Share, choose how it shows under Embed on your website, and copy the code.
- Paste it into your page. In WordPress, use a Custom HTML block; in Webflow or Squarespace, an Embed or Code block.
<div data-agent002="k7m2p9qrst"></div>
<script src="https://f.agent002.net/embed.js" async></script>
The form sits in the page and grows with it, so nobody scrolls inside a frame. Try it on a sample page in Share shows the result before you paste anything.
Pop-ups, panels, corner buttons, tabs and bars
The same script can show the form in other ways: a pop-up or a side panel on the paid plans, and a corner button, a side tab or a bar on top on Team and up. Each opens the form only when someone clicks: never on a timer, when they scroll, or when they’re about to leave.
- Pop-up: a button of yours opens the form over the page. Add
data-agent002="…" data-agent002-mode="popup"to any button or link. - Side panel: the same, in a panel from the side (
data-agent002-mode="slide"). - Corner button: a round button in a bottom corner, with your label and colour.
- Side tab: a tab on the edge of the page.
- Bar on top: your text and a button, or a quick question (yes/no, a rating, or a choice with up to 6 options) whose answers are buttons in the bar: the one clicked opens the form with it filled in. People can close the bar with ×.
Hidden values and answers you set in Share go into the code too. A page that adds elements after loading can call Agent002.scan(); Agent002.open("k7m2p9qrst") opens a form from your own script.
Without a script
If your site doesn’t allow scripts, Share also has a plain frame:
<iframe src="https://f.agent002.net/f/k7m2p9qrst" title="Event RSVP" loading="lazy"
style="width:100%;min-height:760px;border:0"></iframe>
For a long form, raise min-height so people don’t have to scroll inside the frame.
Count it in your own analytics
The form tracks no one. Your page can count what happens in it, though: when a form is embedded with the script, it tells your page when it was opened, started (the first answer typed), a page of it reached, and sent. Only that and the form’s address name are passed on, never an answer.
- Google Tag Manager: if your page has a
dataLayer, the events arrive there asagent002_opened,agent002_started,agent002_pageandagent002_sent, withagent002_form(andagent002_page, the page number). Make a Custom Event trigger onagent002_sentand fire your conversion tags from it. - Your own script:
window.addEventListener("agent002", (e) => {
// e.detail: { event: "sent", form: "k7m2p9qrst" }
});
- Whatever your page does with these is your page’s doing, under your cookie banner and your consent rules, as with any other tag on it. Answers set aside as spam don’t count as sent.
- To know which ad or campaign brought a lead, put it in the link: hidden fields fill themselves from it (see Fill in answers from the link), and the answer carries it to your CRM.
- A plain frame without the script gets the same messages: listen for
messageevents fromhttps://f.agent002.netwhosedata.typeisagent002:event.
What visitors get
- No cookies and no tracking, also when embedded: your cookie banner doesn’t need to mention Agent002. The script stores nothing in the browser, loads nothing until the form is shown, and sends no referrer.
- The form works on phones, with a keyboard and with screen readers. Pop-ups and panels close with Escape, a click outside or ×, and put the focus back where it was.
- When you change the form and publish again, the embedded form updates by itself.
- If your site has a Content Security Policy, allow
https://f.agent002.netinscript-srcandframe-src.