Widgets

Gold Price Widgets

Free embeddable gold price badges and compact chart widgets powered by the local price feed.

Live Price Badge

<div data-gsp-widget="badge" data-metal="gold"></div>
<script src="https://www.goldspotprice.org/assets/js/widget.js" async></script>

Iframe fallback:

<iframe src="https://www.goldspotprice.org/widgets/badge/" width="300" height="120" loading="lazy"></iframe>

Includes attribution back to GoldSpotPrice.org and reads only `/api/price.json`.

Compact Chart

<div data-gsp-widget="chart" data-metal="gold"></div>
<script src="https://www.goldspotprice.org/assets/js/widget.js" async></script>

Iframe fallback:

<iframe src="https://www.goldspotprice.org/widgets/chart/" width="340" height="220" loading="lazy"></iframe>

The chart uses recent local price data and degrades to a text badge if canvas is unavailable.

Publisher Notes

Widget output is intentionally small, cacheable, and attribution-based. Core site pages do not load third-party widget tracking JavaScript.

Adoption tracking can be added server-side later by logging static script referrers rather than adding heavy analytics to visitor pages.