virling Docs
v0.3.0 virling.com GitHub Start free
virling Docs

Set up a no-code site

This guide sets up Virling for a site built on Carrd, Framer, Webflow, Squarespace, Wix or Bubble that sells through checkout links, so every sale shows the channel that brought the buyer: add the script, link checkout, connect your payment provider and make a test purchase. No code is needed beyond pasting one tag. To start, sign in at app.virling.com for the hosted plan, or self-host it.

What you need

  • A site plan that allows custom code in the <head>. Most builders keep it on paid plans.
  • Checkout links from Stripe Payment Links, Polar, Dodo Payments or LemonSqueezy.
  • Permission to create a key in that payment provider.

1. Add the script

  1. Click + Add a site in the sidebar, or open /app/setup, and enter your domain, such as yourdomain.com, and its timezone.
  2. Open /app/yourdomain.com/setup/script for the exact tag:
<script defer src="https://app.virling.com/v.js"
  data-site="yourdomain.com"></script>
  1. Paste it where your builder adds code to the <head> of every page, then publish:

Custom code runs only on the published site, not in the editor preview. Framer and Wix move between pages without a full reload, and the script counts each page change on its own.

Leave cookieless mode off: without the virling_vid cookie there is no visitor ID for checkout to carry.

Put your checkout links on your pages as normal buttons or links. The script adds the visitor ID to every link on these hosts when the page loads, and again on click:

Link hostProvider
buy.stripe.comStripe Payment Links
buy.polar.shPolar checkout links
checkout.dodopayments.comDodo Payments static payment links
*.lemonsqueezy.comLemonSqueezy checkout links

The link must be a normal <a href> link on a page that runs the script. A parameter already on the link is never replaced, and links to other providers are left alone. See Checkout links need no code.

3. Connect your payment provider

Open /app/yourdomain.com/setup/payments, pick your provider, paste the key and click Connect and backfill. Each page lists the key to create:

  • Stripe: a restricted key, rk_live_, or rk_test_ for a test purchase. Secret keys are refused.
  • Polar: an organization access token, polar_oat_.
  • Dodo Payments: an API key.
  • LemonSqueezy: an API key. Virling also adds a webhook, which is how LemonSqueezy returns the visitor ID. Self-hosted, it needs Virling on a public https:// address.

Virling imports the last 90 days, then checks for new payments every minute. It never creates, changes or refunds anything. See Which key to create.

4. Make a test purchase

  1. Open your site in a private window from a tagged link, such as https://yourdomain.com/?utm_source=test&utm_medium=test.
  2. Click your checkout link and pay. Stripe test Payment Links on buy.stripe.com and LemonSqueezy checkout links in test mode get the visitor ID like live ones. Polar sandbox and Dodo Payments test links do not, so test those with one small live payment and refund it.
  3. Wait a minute for the next sync, then open /app/yourdomain.com/payments. The payment should show the test source instead of Unattributed. Open it to see its journey.

Payments imported with a test key stay in your reports after you switch to a live key. The full checklist and each provider’s test mode are in Test your setup.

  • The builder’s own store checkout. Virling reads payments only from the supported providers, so a sale through the builder’s native store or checkout is not imported. Sell through one of the checkout links above instead.
  • Links opened outside your site. A checkout link opened from an email, a QR code or another site carries no visitor ID, and its payment shows as Unattributed. Send those people to a page on your site with a tagged link, and let them click checkout there.
  • Another browser. The visitor ID is a cookie in one browser. A buyer who visits in one browser and pays in another is not linked to the visits in the first one.
  • Other checkout hosts. Links to other providers, or checkout opened by a script rather than an <a href> link, get no visitor ID. See Link checkout to visits for passing it yourself.
  • Visits the script did not see. An ad blocker, cookieless mode, or a page without the tag leaves no visit to credit. See Why a payment is Unattributed.

Payments that do not link still count toward revenue, as Unattributed.

Connect your payment provider and see revenue by channel.

Start free
Was this page helpful?No Edit this page on GitHub