ReTarget.gg
Guides & recipes

Integrate ReTarget.gg with GeoTargetly

Keep GeoTargetly for gating and drop an ReTarget.gg iframe into its custom message to monetize blocked visitors with one snippet.

3 min readReviewed Apr 27, 2026

Already using GeoTargetly (or any geo-popup / custom-message tool) and don't want to rip it out? Keep it. Just drop an ReTarget.gg iframe inside the message it already shows, and every blocked visitor becomes a revenue opportunity instead of a dead end.

This is the fastest possible integration: one HTML snippet, no code changes, no deploy.

Public key + website key required

What you'll get

  • GeoTargetly still decides who gets blocked.
  • ReTarget.gg shows country-appropriate affiliate offers inside the message.
  • You get paid per click. No backend work.

Option 1: Just the offers (minimal)

Paste this where GeoTargetly lets you inject custom HTML (e.g. "Custom message" → HTML tab):

<div style="width: 100%;">
  <iframe
    src="https://retarget.gg/?pub=YOUR_PUBLIC_KEY&website=YOUR_WEBSITE_KEY"
    style="width:100%;min-width:320px;min-height:280px;border:none;overflow:auto;"
    title="Offers"
  ></iframe>
</div>

Replace YOUR_PUBLIC_KEY (starts with pk_…) and YOUR_WEBSITE_KEY (starts with web_…) with the values from your Dashboard → Websites → your site.

That's it. The iframe auto-renders offers for the visitor's country using the same IP that GeoTargetly saw.

Option 2: Branded message + offers (drop-in card)

Prefer to keep your own wording around the offers? Use this full card. Edit the copy, colors, and padding to match your brand:

<div style="
  width: 500px;
  max-width: 100%;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
">
  <div style="margin-bottom: 20px;">
    <h2 style="margin-bottom: 10px; font-size: 20px; color: #333;">
      Service Not Available in Your Location
    </h2>
    <p style="font-size: 14px; color: #555; line-height: 1.5;">
      We're sorry, but our services are not currently available in your region
      due to geographic compliance requirements.
    </p>
    <p style="font-size: 13px; color: #777; margin-top: 10px;">
      Thank you for your understanding.
    </p>
  </div>
 
  <div style="width: 100%;">
    <iframe
      src="https://retarget.gg/?pub=YOUR_PUBLIC_KEY&website=YOUR_WEBSITE_KEY"
      style="width:100%;min-width:320px;min-height:280px;border:none;overflow:auto;"
      title="Offers"
    ></iframe>
  </div>
</div>

Install in GeoTargetly: step by step

  1. Get your ReTarget.gg keys

    In the ReTarget.gg Dashboard → Websites, create (or open) the website you want to monetize. Copy the Public key (pk_…) and Website key (web_…).

  2. Open your GeoTargetly block rule

    In GeoTargetly, open the rule that handles blocked countries and pick the action that supports custom HTML (e.g. "Popup Message", "Content Swap", or "Custom Message").

  3. Paste one of the snippets above

    Switch the content editor to HTML / Code mode. Paste the snippet and replace the two YOUR_* placeholders with your real keys.

  4. Publish and test

    Save the rule. Open your site from a blocked country (or use a VPN). You should see the message with live offers inside it.

Keys → analytics

The keys you paste also identify your traffic inside ReTarget.gg. Clicks, impressions, and earnings from this iframe show up in Dashboard → Websites → your site → Analytics.

Customizing

  • Size: Tweak min-height / min-width in the iframe style. The offer grid is responsive, so anything ≥ 280px tall works.
  • Message copy: Edit the <h2> and <p> in Option 2 to match your product tone.
  • Colors & radius: Change the outer <div> inline styles. No framework required.
  • Desktop vs mobile: The iframe flows with its container, so whatever GeoTargetly's popup does on small screens, the offers follow.

FAQ

Will offers load for every country?

Offers are filtered by visitor geography. If you have offers live for the visitor's country, they'll render. Otherwise the iframe shows a short "no offers available" state: visitors never see a broken popup.

Does GeoTargetly see the offers?

No. GeoTargetly only renders the HTML you paste. The iframe is a standalone frame served by ReTarget.gg; GeoTargetly has no visibility into what's inside it.

Can I still use my custom message text?

Yes: Option 2 does exactly that. Put any wording you want outside the iframe.

What if a visitor clicks an offer?

They're redirected to the advertiser. You earn the payout configured for that offer (CPC in most cases).

Next steps

Need help with setup?

Send us your website stack, target regions, and whether you are installing Geo Popup or Decline Popup.

Integrate ReTarget.gg with GeoTargetly | Docs | ReTarget.gg