Skip to content

Video Commerce install code

The Video Commerce script loads the video showcases you published in the dashboard onto your store. It’s a single line and goes into the store’s HTML once.

Copy it from Video Commerce › Publicação (Video Commerce › Publishing) with the Copiar script (Copy script) button, or from the Instalação (Installation) screen. It looks like this, with your account ID:

<script async src="https://app.provei.ai/video-commerce/loader.js" data-fawkes-video-commerce="00000000-0000-4000-8000-000000000000"></script>

Paste it in the layout used by every page, right before </body>. Videos show only on the pages and in the spots chosen in Posições (Positions).

If Video Commerce is active on your account, the try-on code (fashion, eyewear, sizing or rooms) already loads the video showcases. In that case, the script above is optional.

Putting both on the same page doesn’t duplicate the videos: the second one sees that the first has already loaded and does nothing. The separate script is useful on pages that don’t have the try-on code.

Video Commerce watches for changes in the page content. In stores that change pages without reloading, it checks the new URL and shows the showcase set up for it. See SPA and headless stores.

If the store uses a nonce in its Content Security Policy, add the nonce to the script tag. Video Commerce passes the same nonce on to the script it loads.

The videos come from dedicated video hosts. To find out which ones to allow in your policy, contact support. See CSP and domains.

Frequently asked questions

I already have the try-on code in my store. Do I need the Video Commerce script?

Not if Video Commerce is active on your account. The try-on code already loads the video showcases. Pasting both doesn't duplicate the videos.

Where do I copy the Video Commerce script?

In the dashboard, under Video Commerce › Publicação (Publishing), with the Copiar script (Copy script) button.