🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Short Links Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What the Short Links add-on does
  3. Installing and activating
  4. Choosing a provider and entering a key
  5. Adding a feed to a form
  6. Using the short link in notifications and confirmations
  7. Notification events
  8. Background creation, retries and idempotency
  9. Creating links by hand from the entry list
  10. Which provider should I choose?
  11. Common setups
  12. Developer hooks
  13. Privacy and security
  14. Troubleshooting

Video walkthrough

Gravity Forms Short Links Setup Guide: Pretty Links on Your Own Domain, Bitly, Rebrandly & Dub
Video setup guide: Gravity Forms Short Links Watch on YouTube

Short links are easier to share, look cleaner in a text message or a printed QR code, and let you track clicks. Doing it by hand for every submission is tedious; this add-on does it automatically, the instant someone fills in your form.

The Gravity Forms Short Links Premium Add-on turns a long URL into a short link the moment a form is submitted. You build the long URL from the entry with merge tags, the add-on sends it to the short-link service you chose, and the short URL comes back, is written onto the entry and is ready to drop into any notification or confirmation with a merge tag. Your short links are created in your own provider account, so you keep the clicks, the analytics and the ownership. Nothing is routed through GravityExtra.

You can pick a different provider for the whole site and override it on any single feed. Four providers are built in:

  • Bitly — create a bit.ly link, or a branded short domain registered in your Bitly account, with your access token.
  • Rebrandly — create a rebrand.ly link or a branded domain, with a custom back-half, using your API key.
  • Dub — create a dub.sh link or a link on a domain in your Dub workspace, with your API key.
  • Pretty Links — when the Pretty Links plugin is active, the short link is created on your own domain, so no outside service is called at all.

Whichever provider you use, the result is normalised to one thing: a short URL and its id, stored on the entry. The keys for the three cloud providers are stored encrypted and are only ever sent to that provider’s own host.

Installing and activating

Upload and activate the add-on like any plugin, then go to Forms → Settings → Short Links and activate your GravityExtra licence key. The licence only controls updates; it does not limit any feature. Gravity Forms 2.5 or newer is required.

Choosing a provider and entering a key

On the settings screen, set the Default provider and fill in the key for it:

  • Bitly access token from your Bitly account under Settings → API.
  • Rebrandly API key from your Rebrandly API settings.
  • Dub API key from your Dub workspace under Settings → API keys.

Each key box is write-only: once a key is saved it is never shown again, and leaving the box empty keeps the stored key. A tick under each box, Remove the stored key when saving, clears it. If you use a branded short domain, enter it in the matching branded domain box, for example go.yourbrand.com. Set an optional Daily cap of short links to stop after a number of links per UTC day across all feeds. Press Check the connection to confirm the default provider’s key works; this reads your account and creates nothing. Pretty Links needs no key: the status line tells you whether the plugin is active.

https://gravityextra.com/wp-content/uploads/2026/10/gfsl-settings-scaled.png
The Short Links settings screen: the default provider, the encrypted Bitly, Rebrandly and Dub keys, branded domains, the daily cap and Check the connection.

Adding a feed to a form

Open the form, go to Settings → Short Links and add a feed. A feed has:

  • Provider — use the default, or override it just for this feed.
  • URL to shorten — the long URL, built with merge tags, for example https://yourbrand.com/thanks?ref={entry_id} or a Website field like {Landing URL:4}. It must resolve to a full http:// or https:// address.
  • Custom back-half — an optional ending such as order-{entry_id} (letters, digits, dash and underscore). Rebrandly and Dub honour it; Bitly’s API does not support a custom back-half and ignores it.
  • Branded domain for this feed — overrides the provider’s default domain for this feed only.
  • Write the short link to — the entry field that receives the short URL after it is created, so it shows in the entry and anywhere that field is used.
  • Condition — create the short link only for entries that match your rules.

Add as many feeds as you need; a form can create several short links, each with its own provider and URL.

https://gravityextra.com/wp-content/uploads/2026/10/gfsl-editor-scaled.png
A Short Links feed: the provider, the URL to shorten with merge tags, a custom back-half, a branded domain, the field to write the short link to, and the condition.

The add-on adds merge tags you can use anywhere Gravity Forms replaces them:

  • {short_link} — the short URL.
  • {short_link_id} — the id returned by the provider.
  • {short_link_status} — created, fail, unsure and so on.
  • {short_link_provider} — the provider that made the link.

Add _<feed id> to a tag, for example {short_link_2}, to read a specific feed when a form has several. Because the link is made in the background, use it in notifications that fire on the add-on’s own events rather than on the raw submission.

Notification events

On a form that has a feed, two events appear when you add a notification:

  • Short Links: the short link was created — fires once the short URL exists, so {short_link} is filled.
  • Short Links: the short link could not be created — fires when it fails, so you can alert yourself.

Background creation, retries and idempotency

The visitor never waits for the provider. When an entry is saved, each matching feed is queued and a background job calls the provider, then records the result on the entry. If the provider cannot be reached before anything was sent — a DNS failure, a refused connection — the add-on tries again later with a growing delay. If a request might already have been received — a timeout, a server error, or an answer it could not read — it is marked unsure and never repeated on its own, so you never end up with two links for one entry. The entry note tells you exactly what happened and what to do next.

https://gravityextra.com/wp-content/uploads/2026/10/gfsl-entry-scaled.png
The Short Links box on an entry: the provider, the short link, its id and the status, with the full history in the entry notes.

Creating links by hand from the entry list

The entry list has two bulk actions when a form has an active feed:

  • Create short link (skip done) — makes links only for entries that do not have one yet.
  • Create short link again (makes a new link) — forces a brand-new short link even for entries that already have one.

Both run in the background in small batches, so a large selection never slows the page.

Which provider should I choose?

All four give you one short URL per entry; the difference is where the link lives and what you can control:

  • Choose Bitly if you already track campaigns in Bitly and want its analytics. It is the simplest to set up with a single access token, and it is ideal for plain bit.ly links or a branded domain you have added to Bitly.
  • Choose Rebrandly if you want full control over the back-half of every link and multiple branded domains. Its API honours the custom back-half you set per feed, so a link can read links.yourbrand.com/order-1234.
  • Choose Dub if you want a modern, developer-friendly service with its own workspace and domains, and clean dub.sh links out of the box.
  • Choose Pretty Links if you would rather not involve any outside service at all. The link is created on your own WordPress domain, you own every click, and no data leaves your site.

Because the choice is a single switch, you can start with one provider and move to another later without rebuilding your feeds: change the default, or set the provider on the individual feed.

Common setups

A few recipes to get started:

  • Short link in a confirmation. Point the feed’s URL to shorten at your thank-you page with the entry id, write it to a hidden field, and put {short_link} in the confirmation message so the visitor sees a tidy link straight away.
  • Short link in a text or email to staff. Add a notification on the short link was created event and include {short_link} and {short_link_provider}, so your team gets the ready-made link rather than a long URL.
  • Per-campaign branded links. Give each form a feed with its own branded domain and a back-half built from a field, so a registration form produces go.yourbrand.com/webinar-may while a download form produces go.yourbrand.com/guide-1234.

Developer hooks

Three hooks let you tailor the behaviour:

  • gform_shortlinks_url — a filter that receives the provider, URL, slug, domain and target field before the link is made. Return the changed array, or a non-array to skip the link for that entry. It supports the form and feed specific variants, for example gform_shortlinks_url_6_2.
  • gfsl_link_created — an action fired after a link is created, with the result, entry, feed and form.
  • gfsl_link_failed — an action fired when a link could not be created, with the entry, feed, form and reason.

For example, you can add UTM parameters to the long URL inside gform_shortlinks_url, or push the finished short link to another system inside gfsl_link_created.

Privacy and security

The URL built from the form is sent only to the provider you chose, over its own API host. The three cloud keys are stored encrypted with your site salts, so a copied database alone cannot read them, and they are allow-listed to a single host each so a key can never leak to another address. When you use Pretty Links, the short link is created on your own site and nothing leaves it. The short link and its id are stored with the entry. The provider processes the data under its own terms, which you should reference in your privacy policy.

Troubleshooting

If a link is not created, open the entry and read the Short Links notes. A validation note means the URL to shorten was empty or not a valid http:// or https:// address after the merge tags were replaced — check the field you pointed at. A key note means the provider refused the key; re-enter it and press Check the connection. A daily cap note means you reached your cap for the day; raise it or wait. If the status is unsure, the link may already exist in your provider dashboard; look there before using Create short link again.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr