geScriptLoader.js), which scans the page for tagged elements. Mark up an element with data-ge-convert-price plus the appropriate data attributes.
Recommendation: for product prices, prefer backend conversion (see Price calculation). Use client-side product conversion only for specific cases.
Attributes
If both
data-product-id and data-original-price are present, only data-product-id is used and data-original-price is ignored.
Examples
Convert an amount
Convert a discount amount
data-is-discount="true" the conversion ignores the pricing coefficient and rounding.
Convert a product’s price
Summary
Usedata-original-price to convert an arbitrary amount, or data-product-id to render a specific product’s converted price. For most product pricing, rely on backend conversion and reserve this client-side approach for prices embedded in content.
See also
- Client JS SDK — the Global-e script loader
- Price calculation — backend price conversion

