Install yezap on your website

Reviews appear wherever you put a small block of code. Pick your platform below — most setups take five minutes.

Before you start

  1. Sign in with your email and add your site address. You get a site key — it is in the dashboard under Embed code. Below it is written as YOUR_SITE_KEY.
  2. Decide what reviews belong to. data-object is the name of a tour, product or page: every object has its own reviews and rating. Use something stable, such as a product handle or slug (ang-thong-tour). Without it, reviews are tied to the page address.
  3. After you paste the code, open Embed code → Check the installation in the dashboard: we open your page the way a search engine does and tell you what we see.
The script works only on your own domain and its subdomains (for example www. or shop.). Reviews always wait for your approval before they appear.

Any HTML site

Paste this where reviews should appear, for example under the tour description:

<div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="ang-thong-tour"></div>
<script src="https://yezap.com/w/yezap.js" async></script>

The script is loaded once per page even if you have several blocks. To match your brand, set the accent colour: style="--yzr-accent:#e11d48" on the block. Blocks use your site’s font.

This loads reviews with JavaScript. Visitors see them, but search engines and AI crawlers that don’t run JavaScript may not — for that, use the WordPress plugin or PHP output.

WordPress and WooCommerce

  1. Download the yezap plugin (zip).
  2. In WordPress: Plugins → Add New → Upload Plugin, choose the zip, then Activate.
  3. Settings → yezap: paste your site key and choose where reviews appear — under posts, pages or WooCommerce products.

Reviews are printed right into the page HTML, so search engines read them. Each post, page or product gets its own reviews automatically. To place reviews or the badge by hand, use the shortcodes:

[yezap_reviews]
[yezap_reviews object="ang-thong-tour"]
[yezap_badge]

Caching plugins are fine: the plugin keeps a short-lived copy of the reviews and refreshes it on its own.

Invite WooCommerce customers automatically

In Settings → yezap, tick Email a review link after the order is completed, choose after how many days, and paste the secret key from the dashboard (Embed code → Automatic review invitations). When an order is marked Completed, the customer gets one personal link for the first product of the order. Reviews from invitations get the “Verified” badge; customers who unsubscribed are skipped.

PHP: reviews in your HTML

For sites on PHP (custom CMS, Laravel, Symfony, plain PHP). Download yezap.php, save it next to your pages, then:

<?php require_once __DIR__ . '/yezap.php';
echo yezap_reviews('YOUR_SITE_KEY', 'ang-thong-tour'); ?>
<script src="https://yezap.com/w/yezap.js" async></script>

Your server fetches ready review HTML from yezap (with a short cache), so Google and AI search see the review text. The script adds the review form, filters and photo viewer on top. If yezap is unreachable for a moment, your page still loads — the last saved copy is shown.

Stars in Google results

For a tour or product page you can add schema.org markup (Product + AggregateRating), if your site doesn’t output it already:

echo yezap_reviews('YOUR_SITE_KEY', 'ang-thong-tour', ['schema' => 'product', 'name' => 'Ang Thong Marine Park tour']);
Google shows review stars for products, tours and similar items. It doesn’t show them for reviews of your own company on your own site.

Shopify

  1. In Shopify admin: Online Store → Themes → Customize.
  2. Open the Products → Default product template, click Add section (or Add block in the product information area) and choose Custom Liquid.
  3. Paste the code. {{ product.handle }} gives every product its own reviews:
<div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="{{ product.handle }}"></div>
<script src="https://yezap.com/w/yezap.js" async></script>

For the star rating next to the product title, add another Custom Liquid block there with the badge and the same data-object. Click Save.

Webflow

  1. Open the page — or the CMS Collection template for tours or products — in the Designer.
  2. Drag a Code Embed element where reviews should appear and paste the code.
  3. On a Collection template, replace ang-thong-tour with the item’s slug: in the embed editor click + Add Field and pick Slug.
<div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="ang-thong-tour"></div>
<script src="https://yezap.com/w/yezap.js" async></script>

Publish the site — custom code runs only on the published site, not in the Designer preview.

Squarespace

  1. Edit the page, click Add block where reviews should go and choose Code.
  2. Make sure the mode is HTML, paste the code and save.
<div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="ang-thong-tour"></div>
<script src="https://yezap.com/w/yezap.js" async></script>

Squarespace runs scripts in Code blocks on its Core plan and above, and only on the live site (not in the editor).

Wix

The Wix Embed HTML element shows code inside a frame on another domain, and yezap answers only to your own domain — reviews won’t load there. Use Custom Code instead: it needs a premium plan with your own domain connected.
  1. In the Wix dashboard: Settings → Custom Code → Add Custom Code.
  2. Paste the code below, set Place Code in: Body – end, choose the pages (for example, one tour page) and apply.
<div id="yezap-box"><div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="ang-thong-tour"></div></div>
<script>
  // move the reviews to the end of the page content
  (function () { var b = document.getElementById("yezap-box"), m = document.querySelector("main");
    if (b && m) m.appendChild(b); if (window.yezapReviews) window.yezapReviews.init(); })();
</script>
<script src="https://yezap.com/w/yezap.js" async></script>

On Wix you can’t place the block in an exact spot this way — reviews appear after the page content. If you need a different layout, write to us and we’ll help.

React, Next.js, Vue

Load the script once (for example in your root layout) and render the block in a component. In single-page apps, call window.yezapReviews.init() after the block appears — it picks up new blocks and leaves the existing ones alone.

// Next.js (App Router)
'use client';
import Script from 'next/script';
import { useEffect } from 'react';

export function Reviews({ object }) {
  useEffect(() => { window.yezapReviews?.init(); }, [object]);
  return (
    <>
      <div key={object} className="yezap-reviews" data-key="YOUR_SITE_KEY" data-object={object} />
      <Script src="https://yezap.com/w/yezap.js" strategy="afterInteractive"
        onReady={() => window.yezapReviews?.init()} />
    </>
  );
}

Need reviews in the server-rendered HTML for search engines? Fetch them from the JSON API in your server component and render them in your own markup, keeping the block above for the review form.

Astro, Hugo, Jekyll, Eleventy

Put the HTML snippet into your layout or a partial and pass the page slug to data-object, for example in Hugo:

<div class="yezap-reviews" data-key="YOUR_SITE_KEY" data-object="{{ .File.ContentBaseName }}"></div>
<script src="https://yezap.com/w/yezap.js" async></script>

In Astro use data-object={Astro.params.slug}; in Jekyll data-object="{{ page.slug }}"; in Eleventy data-object="{{ page.fileSlug }}".

Rating badge

“★ 4.9 · 312 reviews” for the header, a tour card or the footer. A click leads to the reviews block — give that block id="reviews". Without data-object the badge shows the rating of the whole site.

<a class="yezap-badge" href="#reviews" data-key="YOUR_SITE_KEY" data-object="ang-thong-tour"></a>
<script src="https://yezap.com/w/yezap.js" async></script>

As an image for emails and places without scripts:

<img src="https://yezap.com/v1/?a=badge&amp;format=svg&amp;key=YOUR_SITE_KEY" alt="Rating">

JSON API and webhooks

Reviews with owner replies and the rating summary (average, count, distribution) — for your own design or for server-side rendering:

https://yezap.com/v1/?a=reviews&key=YOUR_SITE_KEY&object=ang-thong-tour

Invite customers from your shop or booking system

A server-side call with your secret key (dashboard → Embed code → Automatic review invitations). Never put the secret key in page code.

curl https://yezap.com/v1/ \
  -H "X-Yezap-Secret: yzs_…" \
  -d a=invite -d key=YOUR_SITE_KEY -d email=guest@example.com -d name=Anna \
  -d object=ang-thong-tour -d days=3 -d ref=ORDER-1042

days — send the email after this many days (0–60, in the morning); ref — your order or booking number: a repeated call with the same ref creates nothing new. The answer is {"ok":true,"link":…} — you can also put the link into your own emails.

Webhooks: in the dashboard under Settings → Webhook, enter an https address. We send JSON when a review arrives (review.created) and when it is published (review.published), signed with X-Yezap-Signature: sha256=HMAC(body, secret) — ready for Zapier, Make, Slack or your CRM.

Stars in Google search

Google can show a rating under your page in search results — “★★★★★ Rating: 4.9 · 312 reviews”. It does this when the page has rating markup (schema.org AggregateRating) and the reviews themselves are visible on the page. Google decides whether to show the stars; good markup makes it possible.

  1. Turn the markup on. WordPress: Settings → yezap → Stars in Google. PHP: 'schema' => 'product' in yezap_reviews() (see PHP). The markup goes into the page HTML together with the reviews.
  2. Use the type Product for tours and activities. Google shows review stars for a fixed list of types — Product, Event, Course, Recipe, Book, SoftwareApplication, LocalBusiness and a few more. TouristTrip and TouristAttraction are not on the list, so a tour marked up with them gets no stars. yezap uses Product.
  3. Put the rating on tour or product pages, not on the home page. Reviews of your own company (Organization, LocalBusiness, TravelAgency) on your own site are “self-serving” for Google, and it doesn’t show stars for them. Reviews of a specific tour or product are fine.
  4. Keep one rating per page. WooCommerce, Yoast, Rank Math and many themes add their own rating. Two ratings on one page confuse Google — turn off one of them.
  5. Check it. Dashboard → Embed code → Check the installation lists the rating markup it finds on the page and what may stop the stars. Then test the page in Google’s Rich Results Test.
Stars appear after Google crawls the page again — usually days, sometimes weeks. A new site or a page without traffic may wait longer.

If something doesn’t show

  • Run the check. Dashboard → Embed code → Check the installation shows whether the block, the script and the server-side HTML are on the page.
  • No reviews yet? The block shows the form and “no reviews yet” until you publish the first review. New reviews wait in Pending.
  • Different domain. The script works on the domain you added and its subdomains. A staging site on another domain won’t load reviews — add it as a separate site.
  • Content Security Policy. If your site sends a CSP header, allow https://yezap.com in script-src, style-src, connect-src and img-src.
  • Widget switched off. Check that Widget enabled is ticked in the site settings.

Still stuck? Write to hello@yezap.com with the page address — we usually answer within a day.

Try yezap free

One site, up to 10,000 views a month, no ads, no card.

Start free