| 开发者 | mredinlaw |
|---|---|
| 更新时间 | 2026年12月1日 08:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
statistics; the filter sitecrumb_consent_category changes that. Withdrawn consent stops tracking at once and forgets the visitor in that browser.ht('consent', true), e.g. from a cookie banner), and skip visitors with Do Not Track switched on.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.view_item with product_id, name, sku, price and currency, on product pages.remove_from_cart with product_id, variation_id, name, quantity, value and currency. Sent right away after an AJAX removal, otherwise on the next page view.view_cart with value, currency and items, on the cart page.coupon_applied with coupon.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.
Forms, sign-ups and page types
Without any code, the plugin also sends these custom events, for funnels, goals and finding recordings:
form_submit with form (the form's name) and plugin (cf7, wpforms, gravityforms, elementor or fluentforms), when Contact Form 7, WPForms, Gravity Forms, Elementor Pro forms or Fluent Forms take a submission. What visitors fill in is never sent.sign_up when a visitor makes an account (the registration form, or WooCommerce's My account page and checkout). Accounts an administrator adds are left out.comment_posted with post_type, when a visitor leaves a comment.search with results, the number of results, on search results pages. What was searched for is not sent.page_not_found on 404 pages.template (front, home, single, page, archive, category, tag, search, 404, and with WooCommerce product, shop, cart, checkout or account), postType, category (the slug of a post's or product's category; Yoast SEO's primary category when set) and loggedIn (yes or no). Add them on the Custom values page in SiteCrumb to filter heatmaps and recordings by them, e.g. every product page. Both can be switched off on the settings page.
For developers
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.
https://sitecrumb.com for the hosted service) and the site key.In SiteCrumb, under Settings → Install. It is the data-site value of the install snippet. Pasting the whole snippet into either field on the plugin's settings page fills in both.
Logged-in users who can edit posts are not tracked by default. Open the site in a private window, or switch off "Do not track logged-in users who can edit posts".
Yes. Cached pages carry the tracker like any other page, and the plugin keeps the tracker out of the "delay JavaScript" and combine features of WP Rocket, LiteSpeed Cache, SiteGround Optimizer, Autoptimize, Jetpack Boost and Cloudflare Rocket Loader.
Contact Form 7, WPForms, Gravity Forms, Elementor Pro forms and Fluent Forms, out of the box. Each submission becomes a form_submit event with the form's name; nothing visitors typed is sent. For another form plugin, call ht('event', 'form_submit', { form: 'Newsletter' }) from its success callback.
While logged in, open the page on your site and choose SiteCrumb → Heatmap of this page in the admin bar. The dashboard widget's top pages link to their heatmaps too.
Install the WP Consent API plugin and a consent plugin that supports it, such as Complianz. SiteCrumb then tracks only visitors who allow statistics. Without the WP Consent API, switch on "Wait for consent" and have your cookie banner call ht('consent', true).
form_submit (Contact Form 7, WPForms, Gravity Forms, Elementor Pro, Fluent Forms), sign_up, comment_posted, search and page_not_found.view_item, remove_from_cart, view_cart and coupon_applied.sitecrumb folder, and its filters are sitecrumb_track_visitor, sitecrumb_strip_params and sitecrumb_consent_category. Settings saved by the HotTegla plugin are taken over on first load; deactivate and delete the HotTegla plugin afterwards.data-strip-params): WooCommerce's order key key by default, more with the sitecrumb_strip_params filter.statistics consent from consent plugins that support it, and stops and forgets the visitor when consent is withdrawn or has expired. The WooCommerce cart cookie is only set with consent.