外掛標籤
開發者團隊
原文外掛簡介
Laudvi is a hosted customer review service for small businesses: it helps a business ask its customers for reviews and keeps its Google reviews in one place. One feature, the Review Showcase, lets the business show its own Google reviews on its website.
This plugin connects your WordPress site to the Review Showcase in your Laudvi account. Add the “Laudvi Reviews” block, or the [laudvi_reviews] shortcode, to any page.
You can create several widgets in Laudvi, for example a carousel for your homepage and a grid for your reviews page, each with its own settings and key. Give a block its widget key (in the block settings), or use [laudvi_reviews key="YOUR-WIDGET-KEY"]; blocks and shortcodes without a key show the widget whose key is saved in Settings → Laudvi Reviews.
In your Laudvi account you choose whether the Review Showcase is published, its layout, colours and number of reviews, and whether your replies are shown.
Changes appear on your site without editing the page.
The plugin stores three settings: your public widget key, whether to show an optional “Powered by Laudvi.com” link, and whether to count engagement (both off unless you turn them on). It stores no reviews or credentials and makes no requests from your server.
A Laudvi account is required. The reviews, and the choice of what to publish, come from your Laudvi account, which connects to your Google Business Profile. Without an account and a widget key, the plugin shows nothing to visitors (administrators see a short setup reminder).
How the review widget works
The block or shortcode adds an empty placeholder, carrying your widget key, to the page.
On pages with a placeholder, WordPress loads the plugin’s own widget script from your site (assets/laudvi-reviews.js, included in the plugin, readable and not minified).
In each visitor’s browser, that script requests your published Review Showcase data from Laudvi (see External services) and draws it inside the placeholder. Its styles stay inside the widget and don’t affect your theme.
No other code or stylesheet is loaded from anywhere else.
Source code
assets/laudvi-reviews.js is built, not minified, from the TypeScript source included in the plugin's `src/` folder (the Laudvi Review Showcase renderer, GPLv2 or later). To rebuild it byte for byte: `npm install --no-save [email protected]`, then `node src/build.mjs`.
Optional “Powered by Laudvi.com” link
The widget can show a small “Powered by Laudvi.com” link under the reviews. It is off by default, including on sites that installed an earlier version, and the widget works the same without it. To show it, tick “Show a “Powered by Laudvi.com” link under the reviews” in Settings → Laudvi Reviews. When shown, it is a normal link to www.laudvi.com marked rel="nofollow sponsored noopener", opening in a new tab. When it is off, the widget contains no Laudvi link or credit of any kind.
Shortcode
[laudvi_reviews] uses your Laudvi defaults. Optional attributes:
layout: badge, carousel, grid or rating (a compact line with your Google rating, stars and review count).
count: 3 to 12 reviews.
style (rating layout): compact (default) or spotlight (a navy card).
link (rating layout): reviews (default: your reviews on Google) or write (the page to leave a Google review).
panel (a floating rating badge): reviews lets visitors tap the badge to see your 3 newest Google reviews, with links to all your reviews on Google.
float (badge and rating layouts): right or left keeps it in that bottom corner of the screen as visitors scroll. Visitors can hide it with its × button for the page they are on; nothing is stored.
Examples: [laudvi_reviews layout="grid" count="6"], [laudvi_reviews layout="rating" style="spotlight" float="right"]
External services
This plugin relies on the Laudvi service (https://www.laudvi.com), operated by Laudvi, to provide the reviews it displays. Your site’s server never contacts Laudvi; the request below is made by each visitor’s browser.
When: each time a page that contains the Laudvi Reviews block or shortcode is viewed, and a widget key is saved.
Where: https://www.laudvi.com/api/widget/v1/{your widget key} (optionally with ?count= when you set a number of reviews).
What is sent: your public widget key and the review count, plus what any browser request carries: the visitor’s IP address, user agent and, under the browser’s usual referrer policy, your site’s address (normally just the domain) in the Referer header. The request is made without cookies or credentials, and no visitor identifier, page content or form data is sent. Laudvi doesn’t use the Referer for the widget.
What Laudvi does with it: it returns your published reviews, your Google rating and review count, your business name and your appearance settings. To protect the service from abuse, Laudvi briefly counts requests per IP address in memory, using a one-way hash of the address; the Laudvi application does not store visitors’ IP addresses. Vercel, which hosts Laudvi, keeps standard request logs that include the IP address and browser type for up to 30 days.
What is returned: only what you chose to publish in Laudvi: reviewer display names, star ratings, review text and dates as they appear on Google, and, if you turned them on, your replies.
Engagement counts (off unless you turn them on): only if an administrator ticks “Count how often the widget is loaded, seen and clicked” in Settings → Laudvi Reviews, each visitor’s browser also sends https://www.laudvi.com/api/widget/v1/{your widget key}/count a one-word message: when the widget loads, when at least half of it has been on screen for a second (each at most once per page view), and when a Google link or your contact button is clicked. It is sent without cookies and without the page address (no Referer); like any request it carries the IP address, user agent and your site’s domain. Laudvi adds it to that day’s totals and keeps only those totals, for up to about 13 months; it never stores the request or anything that identifies the visitor.
No cookies or storage: the widget sets no cookies, uses no local storage, and loads no third-party analytics or advertising code.
Laudvi terms of service: https://www.laudvi.com/terms
Laudvi privacy policy: https://www.laudvi.com/privacy
