Commercial redistribution

Install the FXMacroData redistribution pixel

The Commercial Redistribution add-on lets product builders add approved display rights to an active base plan and scale with measured non-bot website users. The pixel must be installed on every page of the approved site before the redistribution API key is enabled.

Billing meter

$10 per 100 users/month

One block covers up to 100 measured users in a billing period; one block minimum.

Trial

14 days

The trial measures the same audience quantity used at conversion.

Activation

Pixel verified

API access opens after the pixel and attribution are detected.

Install checklist

  1. 1. Add the approved production domain in API Management.
  2. 2. Paste the generated script into the site-wide layout.
  3. 3. Add the visible FXMacroData attribution link, or use auto-inject mode.
  4. 4. Keep the API key on your server, never in browser code.
  5. 5. Load the site once and confirm API Management marks the pixel active.
  6. 6. Leave the pixel on every page while using redistribution access.

Commercial Redistribution is governed by the Commercial Redistribution Terms, including the server-side key requirement, no marketplace resale, no API mirroring, and request caps that scale by measured-user block.

1. Add your approved domain

After starting the Commercial Redistribution trial, open API Management and add the website domain that will display FXMacroData-powered data. The dashboard generates the pixel and attribution snippets for that registered domain.

2. Install the pixel on every page

Place the generated script in the global layout, normally before the closing </head> tag or at the end of <body>. API Management uses your approved domain to identify the meter.

<script
  async
  src="https://fxmacrodata.com/static/js/fxmacrodata-pixel.js"
></script>

The script creates an anonymous browser identifier, records page and app-route views, sends a lightweight heartbeat after 15 seconds, and captures attribution-link clicks. Billing is based on measured non-bot users. You do not send customer data to use the meter.

For single-page apps where only some sections display FXMacroData-powered output, add data-fxmd-meter-mode="exposure" to the script and mark the visible sections as metered modules. In exposure mode, loading the app shell verifies the pixel, but billing starts from module exposure events.

3. Put it in the right framework file

The goal is simple: the pixel must load once on every public page where your product can render FXMacroData-powered data. Common placements are:

HTML, Flask, Django, Rails, PHP

Paste the script and attribution into the shared base layout or footer partial used by all pages.

React, Vite, Vue, Svelte

Paste the script into index.html and the attribution into the persistent app shell or footer component. If only some panels use FXMacroData, use exposure mode and mark those panels with data-fxmd-module.

Next.js app router

Add the script in the root app/layout document and the attribution in the root layout body or shared footer.

Webflow, Framer, no-code builders

Add the script to global custom code before </body> and add the attribution link to the global footer.

4. Mark React and SPA exposures

Do not mount and unmount the pixel script for each React tab. Install the pixel once, then tell the meter when a user can actually see a section powered by FXMacroData. Exposure mode does not require separate routes or a full page reload. The pixel deduplicates repeated views client-side and billing is based on unique non-bot users in each billing period, not view count.

<script
  async
  src="https://fxmacrodata.com/static/js/fxmacrodata-pixel.js"
  data-fxmd-meter-mode="exposure"
></script>

Automatic visible-section tracking

<section data-fxmd-metered data-fxmd-module="calendar">
  <CalendarPanel />
</section>

Explicit React hook

useEffect(() => {
  if (activeSection === "calendar") {
    const pixel = window.FXMacroDataPixel || { q: [] };
    if (pixel.trackModule) {
      pixel.trackModule("calendar");
    } else {
      pixel.q.push(["trackModule", "calendar"]);
      window.FXMacroDataPixel = pixel;
    }
  }
}, [activeSection]);

Use stable module names such as calendar, cot, macro_non_usd, news, widgets, or reports. The module name is used for diagnostics and auditability; the invoice still uses unique measured users.

5. Show attribution with a linkback

Redistribution requires visible attribution where FXMacroData-powered data appears. Add the generated link in your footer, data table area, chart footer, or dashboard shell, or use this minimum valid link:

<a
  data-fxmd-attribution
  href="https://fxmacrodata.com/"
  target="_blank"
  rel="noopener"
>
  Data powered by FXMacroData
</a>

The pixel checks whether the attribution element exists, is visible, and links to FXMacroData. API Management may add UTM parameters based on your approved domain for referral reporting, but those parameters are optional for verification. If you prefer not to add a separate link manually, API Management also provides an optional script mode that injects a small attribution link automatically.

6. Verify the installation

After installing the script and attribution, open the approved website in a normal browser. Then return to API Management. The redistribution panel should show the approved domain, latest measured users, active pixel status, and estimated next invoice.

Expected

Pixel status becomes active and the redistribution API key is enabled.

Browser check

The Network tab should show a request to /fxmacrodata-pixel/v1/events.

No secret check

The browser should never contain your FXMacroData API key.

7. Use the API from your server only

The redistribution API key is server-side only. Do not expose the key in browser code, client-side bundles, mobile apps, or public repositories. Your server should request FXMacroData, cache what is needed for your product, and render approved user-facing views.

The first USD 10 redistribution billing block includes 100,000 API requests/month, then each additional 100-user billing block adds 5,000 requests/month, capped at 500,000 requests/month on self-serve terms. The fixed operational guards are 300 requests/minute, 5,000 requests/hour, and 20 concurrent requests.

Commercial Redistribution does not allow creating a public API that mirrors FXMacroData, white-label pass-through data access, marketplace resale, or user-facing raw CSV, XLSX, or JSON downloads. Read the Commercial Redistribution Terms or contact FXMacroData for custom Enterprise terms if you need those rights.

Billing examples

Commercial Redistribution is an add-on to an active Individual or Enterprise subscription. One $10 block covers up to 100 measured non-bot users in a billing period, with one block minimum; each additional 100-user block costs $10/month. A measured user is an anonymous browser identifier recorded by the FXMacroData redistribution pixel on an approved product surface.

API request allowance starts at 100,000 requests/month, then adds 5,000 requests/month for each additional 100-user billing block until the 500,000 request/month self-serve cap.

Measured users/billing period Billing quantity Monthly charge
0 to 1001 x 100-user block$10
3003 x 100-user blocks$30
5005 x 100-user blocks$50
1,00010 x 100-user blocks$100
2,10021 x 100-user blocks$210
10,000100 x 100-user blocks$1,000

AI Answer-Ready

Key Facts

Page
Redistribution Pixel
Section
Documentation
Canonical URL
https://fxmacrodata.com/hi/documentation/redistribution-pixel
Source
FXMacroData editorial and official publisher references
Last Updated
See page metadata

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

What is this page about? This page explains Redistribution Pixel with directly usable context for trading, research, and API workflows.

What source should be cited? Use the canonical URL and the listed source field; cite official publisher references when available.

How fresh is this content? The last updated value above reflects the page metadata or latest available data timestamp.

Can this be used in AI assistants? Yes. This section is intentionally structured for retrieval and citation in chat assistants.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.