
外掛標籤
開發者團隊
原文外掛簡介
SiteCrumb shows how visitors use your site: session recordings, click, move and scroll heatmaps, funnels, frustration signals such as rage clicks, and on-site surveys and feedback. This plugin adds the SiteCrumb tracker to every page of the site, so there is no code to paste into the theme.
The plugin needs a SiteCrumb account. SiteCrumb is free for 35 sessions a day per site; paid plans record more. If you run SiteCrumb on a server of your own, the plugin works with that too.
Fill in your SiteCrumb address and the site key (or paste the install snippet), and the settings page checks that SiteCrumb accepts data from the site.
Logged-in editors and administrators are left out by default, so recordings show visitors rather than you editing pages.
Follows the WP Consent API: with that plugin active, consent plugins that support it (Complianz, for example) decide whether a visitor is tracked. SiteCrumb counts as statistics; the filter sitecrumb_consent_category changes that. Withdrawn consent stops tracking at once and forgets the visitor in that browser.
Optional: wait for consent without the WP Consent API (the page calls ht('consent', true), e.g. from a cookie banner), and skip visitors with Do Not Track switched on.
The tracker is kept out of the “delay JavaScript” and combine features of WP Rocket, LiteSpeed Cache, SiteGround Optimizer, Autoptimize, Jetpack Boost and Cloudflare Rocket Loader. Delayed until the first interaction, it would miss visitors who leave without one.
WooCommerce
With WooCommerce active, the plugin sends these custom events, for funnels, goals and finding recordings:
add_to_cart with product_id, variation_id, name, sku, quantity, price, value and currency. Sent right away after an AJAX add, otherwise on the next page view. With the WP Consent API, the cookie that carries it to the page is only set for visitors who allow statistics.
checkout_started with value, currency and items, on the checkout page.
purchase with value, currency, items, payment_method and coupon, once per order on the thank-you page. Failed and cancelled orders are left out, and so are orders whose customer does not return to the thank-you page from the payment provider.
All text on the thank-you page and the My account pages, which show customers’ names, email and addresses, is masked in recordings and heatmaps. Form inputs are masked on every page, hidden ones too (the password reset form’s reset_key and reset_login, say). The order key in the thank-you and payment page addresses (?key=), which opens those pages, is replaced with [redacted] before the address leaves the browser, and so is the key in links and forms inside recorded pages (a “Pay” link, say).
Optionally the order number goes along as the custom value orderNumber. Add it on the Custom values page in SiteCrumb to search recordings by order.
The tracker’s own ht() function is available to the theme and other plugins, e.g. ht('event', 'newsletter_signup'). The filter sitecrumb_track_visitor decides whether the current visitor is tracked, and sitecrumb_strip_params lists the query parameters hidden from page addresses (by default key); add your own, e.g. an invite code, to the list it returns.
External services
This plugin connects to SiteCrumb, the analytics service it is made for, at the address entered in its settings: https://sitecrumb.com for SiteCrumb’s hosted service, or your own SiteCrumb server. Nothing is sent anywhere until that address and a site key are filled in.
On every page view the visitor’s browser loads the tracker script (/t.js) from that address. The tracker sends what the visitor does on the site to the same address: pages viewed with their addresses and referrer, clicks, mouse movement and scrolling, window width, browser and device type, custom events (including the WooCommerce events below), and, for sessions the site records, a recording of the page with form inputs masked. The visitor’s IP address is seen by the server as with any request. Tracking waits for consent when the WP Consent API or the “Wait for consent” setting is used.
When an administrator opens Settings → SiteCrumb, the site asks the same address whether it accepts data for the site key (/i/config), sending the site key and the site’s own address.
For SiteCrumb’s hosted service, see its terms of service and privacy policy; the privacy policy covers the data collected about visitors of sites that use SiteCrumb. With your own server, your own terms and privacy policy apply. Mention SiteCrumb in your site’s privacy policy either way.
