How to show your online auction on your own website
Your website is where search engines, assistants and your own customers already find you, and a link that says "our auction" is not enough: people want to see the lots, the prices and how long is left, on the page they are on. This guide covers what a good auction embed shows, the one line of code that does it, and where that line goes in each of the common page builders.
Updated
| What you are adding | A small live block on your existing site: lot photos, titles, current prices, bid counts and a countdown, refreshing itself, linking to the lot. |
|---|---|
| What it is not | Not a frame of your whole auction site, and not bidding on your website: bidding stays on the auction site, where registration and payment live. |
| How | One line of HTML, pasted where the builder lets you add code. Where scripts are refused, a live image with a link instead. |
| Time | Ten minutes, most of it finding the right box in your page builder. |
| When the sale ends | A good embed removes itself when nothing is open or coming up, so the page never shows a stale sale. |
What a good auction embed shows
Four things, and nothing else:
- The lots that are live now, with photo, title, current price and number of bids, and a countdown to each close that actually counts. A lot that has not opened yet shows its starting price and a countdown to its opening instead.
- A click that opens the lot on the auction site, in a new tab, so the visitor can bid without losing your page.
- Nothing when there is nothing. The block should disappear by itself when no lot is open or coming up. An embed that shows last month's sale, or "no auctions at the moment", tells every visitor you are not busy.
- Your look. Your accent colour and corner style, so it reads as part of your site and not as an advertisement.
What to avoid: an iframe of the whole auction site (two scrollbars, two headers, a broken phone layout), a screenshot that goes stale the day it is taken, and anything that asks visitors to log in on your site to see prices.
The two ways to do it
A script. One <script> line that draws the block and keeps it current. This is the normal way and works wherever your page builder lets you add "custom code", "embed HTML" or a "code block". It should set no cookies and load no fonts or trackers on your visitors' behalf; ask that of any widget you consider, because your privacy notice is the one that has to cover it.
A live image with a link. Some places refuse scripts: email signatures, newsletter builders, a few site builders' free plans, intranets. There, an image that is redrawn on the server every few minutes, wrapped in a link to the sale, does most of the job: it shows how many lots are live and when bidding closes, and it stays current in a page or an email sent weeks ago.
The line of code
For an auction site built on Auctify, the free AuctionAmigo widget is one line:
<script async src="https://auctionamigo.com/w.js"
data-site="your-sale.myauctify.com" data-shape="horizontal"
data-colour="#ffd23f" data-corners="8" data-background="light"></script>
Replace your-sale.myauctify.com with your auction site's address, with or without https://; an own domain works the same. The designer on this site's homepage writes the line for you with your colour and shape filled in, and shows the result before you copy it. The attributes:
| Attribute | Values | Default |
|---|---|---|
data-site | the auction site's address (required) | none |
data-shape | floating, horizontal, vertical, skyscraper | floating |
data-colour | accent colour as #rrggbb | #ffd23f |
data-corners | corner radius in pixels, 0 to 24 | 8 |
data-background | light or dark | light |
data-limit | number of lots, 1 to 12 | depends on the shape |
data-target | CSS selector of an element to draw into | where the tag sits |
data-lang | a language code such as de, fr, pt-br | the auction site's language |
It refreshes every two minutes, sets no cookies and stores nothing, loads no fonts and no trackers, draws inside its own shadow root so your styles and its styles leave each other alone, and renders nothing at all when the site has nothing open and nothing coming up. Bidding happens on the auction site, never inside the widget.
Which shape, and where on the page
| Shape | Where it goes | Good for |
|---|---|---|
| Floating | Anywhere, including the page head: it sits in the bottom corner of every page and the visitor can hide it. | A site with many pages where the auction should be visible on all of them. |
| Horizontal | Where the tag sits: under the hero, above the footer, in a wide content area. | A homepage or a dedicated "auction" page. |
| Vertical | A sidebar or a narrow column. | Blogs and news-style layouts. |
| Skyscraper | A tall, narrow slot. | Pages with a fixed side column. |
Start with one placement, not three. The homepage, under the first screen, is the place most visitors see; a floating widget on every page is the second. Set the lot count to what the space holds: three lots in a narrow sidebar look better than twelve.
Where to paste it, builder by builder
Every builder has a box for other people's code; the names differ. Menu names below are as the builders label them at the time of writing and move around with redesigns, so if one has moved, search the builder's help for "embed code" or "custom code". Where a feature depends on the plan, it says so; check your own plan before assuming.
- WordPress
A Custom HTML block in the block editor, on the page you want, with the line pasted in; or a widget area for a sidebar. There is a separate guide to running an auction with a WordPress site that covers this and the question of plugins.
- Wix
In the editor: Add Elements → Embed Code → Embed HTML, paste the line into the element and size it. Wix runs embedded code inside its own frame, so pick an inline shape (horizontal, vertical or skyscraper) and make the element as large as the shape needs; a floating widget cannot leave that frame. Site-wide code goes in Settings → Custom Code, which Wix offers on its paid plans with a connected domain.
- Squarespace
Add a Code block where you want the lots and paste the line. Squarespace runs scripts in code blocks on its Business plan and above; on the Personal plan a code block shows HTML only, and a script does nothing. For every page at once, Settings → Advanced → Code Injection → Footer, which has the same plan requirement.
- Jimdo
Jimdo Creator: the Widget / HTML element, paste the line. Jimdo's newer editor has an HTML element on its paid plans. Pick an inline shape and give the element room.
- Webflow
Drag an Embed element onto the page and paste the line into it. Site-wide code goes in Site settings → Custom code → Footer code, which needs a paid site plan to publish.
- Shopify
Online Store → Themes → Customize, add a Custom Liquid block (or Custom HTML, depending on the theme) to the section where the lots should appear, and paste the line. The widget links out to the auction site; it does not add anything to the shop's cart.
- Weebly and Google Sites
Weebly: the Embed Code element. Google Sites: Insert → Embed → Embed code. Both run the code inside a frame of their own, so use an inline shape and size the element to it.
- Plain HTML, or a developer
Paste the line where the block should appear, or just before
</body>with the floating shape. Withdata-targetyou can keep the tag in one place and have the widget draw into any element by its selector.
Where scripts are not allowed
Email signatures, newsletter tools, some builders' free plans and most intranets strip scripts. Use the live image there: a banner drawn on the server every few minutes showing how many lots are live and when bidding closes, wrapped in a link to the sale. In HTML it is an <a> around an <img>; in a newsletter tool it is "add image, set link". Because the image is redrawn, an email sent two weeks ago still shows the current count, and once the sale has ended it becomes a plain invitation to visit the auction site rather than a stale claim.
What a live image cannot do: show individual lots with prices, or count down. It is the fallback, not the first choice, and it belongs in an email far more than on a web page that could run the script.
Checking that it works
Open the page in a private browser window on a phone and on a computer. You should see the lots within a second or two. If you see nothing at all, it is one of three things, and the widget is silent about all of them on purpose, so that a visitor never sees an error:
- The auction site has nothing open and nothing coming up. List a lot, or check that bidding is actually open.
- The auction site is in private mode, so nothing about it is public. A private site cannot be shown anywhere.
- The address is wrong, or the element the builder gave the code is too small to draw into. Check the spelling of
data-site, then make the element bigger.
Then wait two minutes after a bid on the auction site and confirm the price on your page has moved. From then on there is nothing to maintain: when the sale ends the block removes itself, and the next sale appears when its lots are listed.
Questions
Can I embed my auction on a Wix, Squarespace or Jimdo site?
Yes, through each builder's code element: Embed HTML on Wix, a Code block on Squarespace (scripts need the Business plan or above), the Widget / HTML element on Jimdo. Builders that run code in a frame need an inline shape sized to the element rather than the floating one.
Does the widget let people bid on my website?
No. It shows the live lots with price, bid count and countdown and opens the lot on the auction site in a new tab, where registration, bidding and payment live. Bidding never happens inside the widget.
What happens on my website when the auction ends?
The widget renders nothing at all when the auction site has no lot open and none coming up, so the page never shows a finished sale. It reappears when the next lots are listed.
Does the embed set cookies or track my visitors?
The AuctionAmigo widget sets no cookies, stores nothing, loads no fonts and no trackers; it makes one request for the lots and loads the lot photos from the auction site. Ask the same of any other widget before you add it, because your privacy notice has to cover it.
My newsletter tool will not accept a script. What then?
Use the live image: a banner redrawn every few minutes that shows the lot count and closing day, wrapped in a link to the sale. It stays current in an email sent weeks ago and becomes a plain invitation once the sale has ended.