Installs in minutes, on the store you already have

Tryview works on any site where you can add a script. Here are the guides for the most common platforms.

Shopify

  1. In the Tryview dashboard, under Installation, copy your snippet (it includes your public key).
  2. In Shopify: Online Store → Themes → Customize, and at the top choose the Products → Default product template.
  3. In the product column: Add block → Custom Liquid. Paste the snippet and save. You can drag the block to place the button.
  4. Authorize your domain and also your-store.myshopify.com in the dashboard. The button only appears on products with an approved model.
  5. If your theme has no “Custom Liquid”: Themes → Edit code → sections/main-product.liquid, paste the snippet at the end and save.

Any HTML site

  1. Paste the snippet into your product page template, before </body>.
  2. Tryview recognizes the product by the page URL (or by data-product-url if the page has a different canonical URL).
  3. Authorize your domain in the dashboard: the try-on only shows up on sites you authorized.
<script async src="https://cdn.tryview.app/widget.js"
  data-key="tv_pk_live_…"
  data-target=".product-form__submit"
  data-position="after"></script>

Snippet options

data-key
Your public key (required).
data-target
CSS selector where the button is inserted.
data-position
after, before, append, prepend or floating.
data-label
Button text (defaults to “Try on virtually”).
data-accent
Button color, to match your brand.
data-gradient
Animated border with a spinning gradient (comma-separated colors).
data-radius
Button rounding, from 0 (square) to 100 (pill).
data-lang
Try-on language: es, en or pt (defaults to the page language).
data-product-url
Product URL, if different from the page URL.

Using another platform?

If your platform lets you add code to the product page (most do), Tryview works the same. Write to us and we will help you install it.

Ready to sell more glasses and reduce returns?

Create your free account, add a product and see it on your own face in minutes.