ReTarget.gg
Start here

Quickstart: two-minute install

Go from zero to live sponsored offers on your site in two minutes. One script tag, one geo rule, one test from a VPN.

3 min readReviewed Apr 27, 2026

This guide takes you from signup to live offers in two minutes. We'll skip the "what is this" parts; for context read How ReTarget.gg works after you're live.

Public key + website key required

Who this is for

Anyone with a website and a <head> (or a theme hook) they can paste one script tag into. That includes Next.js, Cloudflare Pages, any static host, custom stacks, and anything fronted by Google Tag Manager or Cloudflare Zaraz.

Prerequisites

  • An ReTarget.gg account (sign up at app.retarget.gg).
  • A website you control: including the ability to add a <script> tag or configure a tag manager.
  • A VPN or second device you can park in a blocked country to verify the install.

1. Add your website

  1. Open the dashboard and create a website

    Sign in to app.retarget.gg, go to Websites → Add website, and fill in your site's name, primary domain (e.g. example.com), and the vertical (iGaming, finance, e-commerce, etc.).

  2. Pick a display mode

    Choose Geo-blocking widget (full overlay) for most publishers, or Inline section if you want the offers to render inside an existing element on your page. You can switch modes later without redeploying.

  3. Copy your two keys

    After saving, the website detail page shows your public key (pk_…) and website key (web_…): each website has its own pair. Keep this tab open.

2. Paste the script

Drop this into <head> or right before </body> on every page you want to monetize. Each website has its own keys: paste yours into the placeholders.

HTML
<script>
(function () {
  if (document.querySelector('script[data-website="YOUR_WEBSITE_KEY"]')) return;
  var s = document.createElement('script');
  s.src = 'https://cdn.retarget.gg/widget.js';
  s.async = true;
  s.setAttribute('data-pub', 'YOUR_PUBLIC_KEY');
  s.setAttribute('data-website', 'YOUR_WEBSITE_KEY');
  s.setAttribute('data-api', 'https://api.retarget.gg');
  (document.head || document.documentElement).appendChild(s);
})();
</script>
Next.js
// app/layout.tsx
import Script from "next/script";

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
  <html lang="en">
    <body>
      {children}
      <Script
        src="https://cdn.retarget.gg/widget.js"
        data-pub="YOUR_PUBLIC_KEY"
        data-website="YOUR_WEBSITE_KEY"
        strategy="afterInteractive"
      />
    </body>
  </html>
);
}
GTM / Zaraz
<!-- Custom HTML tag, trigger: All Pages -->
<script>
(function () {
  if (document.querySelector('script[data-website="YOUR_WEBSITE_KEY"]')) return;
  var s = document.createElement('script');
  s.src = 'https://cdn.retarget.gg/widget.js';
  s.async = true;
  s.setAttribute('data-pub', 'YOUR_PUBLIC_KEY');
  s.setAttribute('data-website', 'YOUR_WEBSITE_KEY');
  s.setAttribute('data-api', 'https://api.retarget.gg');
  (document.head || document.documentElement).appendChild(s);
})();
</script>

Signed in? We pre-filled your keys

If you're reading this while signed into the dashboard, the snippets above already contain your real keys: click copy and paste.

3. Configure your geo rule

Back in the dashboard → website detail → Geo rules, pick a mode:

  • Allowlist: you list the countries where your product is available. Everywhere else sees offers.
  • Blocklist: you list the countries where your product isn't available. Those see offers.

Start tight

If you're on allowlist mode, list only your licensed / supported countries to start. It's easier to widen later than to debug why offers aren't showing.

4. Verify from a blocked country

  1. Turn on a VPN in a country that should see offers

    Anywhere not on your allowlist (or on your blocklist) works: common picks for testing are Germany, Sweden, Australia, Canada.

  2. Hard-reload the page

    The script runs, fetches a decision from api.retarget.gg, and renders a full-screen overlay of offers.

  3. Click an offer

    Confirm it opens the advertiser's landing page. Back in the dashboard, the website's Analytics tab shows the impression and click after your events flush.

Nothing's showing: now what?

Where to go next

Need help with setup?

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

Quickstart: two-minute install | Docs | ReTarget.gg