Sales tools
How to show a popup only to visitors from your ads
Show visitors from your Instagram or Google ads the same offer they saw in the ad: targeting by UTM tag, the right landing page and timing, step by step.
In short
- A popup for ad traffic is shown only to visitors who land on your site through a specific ad's link; it delivers on the offer promised in the ad.
- Targeting uses the tag you add to the ad's URL, for example
utm_campaign=winter-sale. In the widget's targeting you choose Custom URL and enter that tag. - The tag is only in the address of the first page the visitor lands on, so the popup has to open on that page: right away or within a few seconds.
- The offer in the ad and the offer in the popup must match; visitors who didn't see the ad get your general popup, or none at all.
In this guide
A visitor who saw an Instagram ad saying “15% off your first order” looks for that offer when they arrive. If the site says nothing, or shows a different discount to everyone, the ad's promise falls flat. A popup for ad traffic repeats the ad's promise on the landing page and shows the offer only to people who saw that ad.
What is a popup for ad traffic?
A popup for ad traffic opens only for visitors who land on your site through a specific ad link. Which ad they came from is read from the campaign tags (UTM) you add to the ad's destination URL. The popup opens on an address carrying that tag; visitors arriving directly, from search or from another ad don't see it.
What is a UTM tag and how do you add it to an ad?
UTM tags are parameters added to the end of a link that tell you where a visitor came from. Google Analytics also reads traffic sources from them (Google). An ad's destination URL might look like this:
https://www.yourstore.com/collections/coats?utm_source=instagram&utm_medium=paid_social&utm_campaign=winter-sale
| Tag | What it says | Example |
|---|---|---|
utm_source | Source | instagram, facebook, google |
utm_medium | Channel type | paid_social, cpc |
utm_campaign | Campaign name | winter-sale |
You add the tag to the ad's destination URL, or to the URL parameters field, in your ad manager. Keep the campaign name short, lowercase, without special characters, and different for each campaign; you'll target the popup by this name.
How do you target the popup by this tag?
On the widget's Targeting tab, choose Custom URL and type the tag into “If the URL contains”: utm_campaign=winter-sale. The field looks for this piece in the page's full address (including the part after the question mark); case doesn't matter. If you enter several pieces separated by commas, the popup opens when any of them matches.
| Who do you want to show it to? | “If the URL contains” |
|---|---|
| Only visitors from one campaign | utm_campaign=winter-sale |
| Visitors from all your Instagram ads | utm_source=instagram |
| Visitors from two campaigns | utm_campaign=winter-sale, utm_campaign=new-year |
The ad and the popup must say the same thing
Weak
Ad: “15% off your first order.” Popup: “Subscribe to our newsletter.”
Strong
Ad: “15% off your first order.” Popup: “Welcome from Instagram! 15% off your first order: WINTER15”
- Heading: the exact offer from the ad.
- Code: set up on your platform, single use per person, with an end date.
- Button: closes the popup and leaves the visitor on the page they landed on; it doesn't pull them away from the ad's product.
Live preview: try it
Step-by-step setup
- Create a discount code on your platform for the ad's offer.
- Add campaign tags to the ad's destination URL (
utm_source,utm_medium,utm_campaign). - Open Widget Studio in Roigo, choose the Welcome coupon template and match the heading and code to the ad.
- On the Behavior tab, set the trigger to Immediately or After a delay of a few seconds; leave the frequency at Only once.
- On the Targeting tab, choose Custom URL and enter the campaign tag; choose the device that matches where the ad runs.
- Publish, then open the ad's link in a private window: the popup should open. Check that it doesn't open on the untagged address.
Mobile and page experience
Most people arriving from Instagram and Facebook ads are on phones. A popup that fills the screen the moment someone lands both tires visitors and falls into the type of content-covering popup Google warns about (Google). For ad traffic, choose a delay of a few seconds, a simple popup and a visible close button, or show the offer in a corner card. The details are in the mobile popup guide.
Pre-launch checklist
How do you measure the result?
Read your ad platform's conversion report together with your platform's coupon usage report: a campaign-specific code makes it easy to separate orders from that ad. In Google Analytics you see the campaign's sessions and purchases under the same utm_campaign name. When comparing with a period before the popup, make sure the ad budget and audience stayed the same.
Frequently asked questions
Can I show a popup only to visitors from Instagram ads?
Yes. Add a tag such as `utm_source=instagram` to the ad's destination URL, then choose Custom URL in the widget's targeting and enter that tag. The popup opens only on pages whose address carries it.
Does the popup open after the visitor moves to another page?
On most sites the tag is only in the address of the first page; if another page doesn't carry it, the popup won't open there. That's why the trigger should be right away or a delay of a few seconds.
Does it work for Google Ads too?
Yes; targeting looks at the address, not the ad platform. Add your own UTM tag to the ad's final URL and enter the same tag in the widget's Custom URL field.
What do visitors without the tag see?
They don't see this popup. You can set up a separate, general popup for them or show none; just make sure two popups don't open together on the same page.
Sources
The official documents the information in this guide is based on.
Show ad visitors their own offer
Set up the coupon popup and target it by campaign tag. Your ad's promise is delivered word for word on the landing page.
Get startedNo card required · 3 live widgets on Lite
Related guides
All guidesWidgets
First-order discount popup: the welcome coupon
· 6 min readWidgets
Adding a popup to your website: types, rules, setup
· 13 min readSales tools
Mobile popup best practices that don't annoy
· 6 min readWidgets
Building an email list: how online stores get subscribers
· 18 min readWidgets
How to increase your e-commerce conversion rate
· 12 min read
