Back to Help Center

How to add a Vizbl Core AR integration to your website

Learn how to embed a 3D model on your site using any of the available Vizbl Core AR integration types.

Updated

Every model in your library can be embedded in multiple ways — pick the one that fits your product page.

If your store is on Shopify, you don’t need to add any code: connect the Vizbl 3D & AR Connector instead. You link models to products in your Core AR dashboard and add the button in the Shopify theme editor.

Connecting the Vizbl 3D & AR Connector

If you haven’t gone through onboarding yet, you’ll need to add your domain first — enter your site address, for example shop.com. The integration won’t work otherwise.

You can update or remove your domain at any time. See the separate guide for details.

1. Open your Core AR dashboard.

2. Go to the model library and click any model.

3. Click Integration to the right of the model preview.

How to add a Vizbl Core AR integration to your website

4. Select an integration type, model and variant.

5. To limit how shoppers can rotate the model, for example to horizontal rotation only, set the angles under Camera angle. Leave the fields blank to allow free rotation.

How to add a Vizbl Core AR integration to your website

Integration types

  • Embeddable 3D viewer — lets customers rotate and zoom the model on your page. No AR. Free on all plans.
  • 3D & AR viewer — opens the model in a popup with an option to launch AR.
  • AR view — jumps straight to AR on tap.
  • QR code for AR view — opens AR view when a shopper scans it with their phone. Put it on showroom displays or in a print catalog, embed it on your site, or use it in ads.

To preview an integration type, click Example on its card.

Adding an integration

Embeddable 3D viewer

Copy the iframe code and paste it into your page. Done.

3D & AR viewer or AR view

Once you pick an integration type, two code snippets appear: a script for your <head> and an element that triggers the widget. Both are pre-configured for your selected model variant — nothing else to set up. The domain isn’t part of the code: one script works on every domain on your list.

  1. Add the script to your site’s <head>. On a CMS like WordPress, add it to your site template.
  2. Paste the element code where you want the trigger to appear on the page.

3D & AR viewer and AR view share the same <head> script. If it’s already on your site for one of them, you don’t need to add it again for the other.

Adding an integration

The widget button comes fully styled out of the box — no setup required. To make it look like the rest of the buttons in your store, add two attributes to the <vizbl-core> element — they only work as a pair: unstyled turns off the widget’s built-in styles, and trigger-class applies your existing CSS class to the button:

<vizbl-core
  api-key="pk_your_key"
  type="ar-viewer"
  object-id="your-object-id"
  unstyled
  trigger-class="btn-primary">
</vizbl-core>

If the styles don’t apply — make sure both attributes (unstyled and trigger-class) are present, and retype the spaces between attributes by hand: copying code from messengers or documents often brings in non-breaking spaces, which stop the browser from recognizing the attribute.

To change the button text, put your own text between the tags: <vizbl-core …>Try it in your room</vizbl-core>.

QR code for AR view

Click Download PNG or Download SVG. Print it at least 2×2 cm (about 0.8×0.8 in) so phone cameras can read it reliably.

Adding an integration

Get help in our Discord

Join our Discord to ask questions about these instructions or get technical support. If something isn’t working, open a ticket and our team will investigate.

Still need help?

Can’t find what you’re looking for? Our team is happy to help.