=== GetSiteTape ===
Contributors: getsitetape
Tags: session recording, session replay, heatmap, analytics, woocommerce
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Watch real visits to your WordPress site like a video. Session replay, heatmaps, form analytics and JavaScript error logging.

== Description ==

GetSiteTape records visits to your site and plays them back like a video: every click, scroll, tap and page change. Visits with rage clicks and JavaScript errors are flagged first, so you start with the ones where something went wrong.

This plugin connects your WordPress site to your GetSiteTape account. Paste your site key once and the tracking code is added to every page, with no theme files to edit. It keeps working when you change or update your theme.

**What you get in your GetSiteTape dashboard**

* Session replay, with rage clicks and errors marked on the timeline
* Click heatmaps and scroll depth, for desktop and mobile
* JavaScript errors, console messages and failed requests beside each replay
* Ad Replay: visits from Meta, Google, Microsoft and TikTok ads grouped by campaign
* Conversion funnels and form analytics (on the plans that include them)
* Alerts by email, Slack or webhook

**Works with WooCommerce.** Your shop, product, cart and checkout pages are recorded too.

**Built to stay out of the way**

* The script loads asynchronously, so it never holds your pages up.
* Passwords are always masked in the visitor's browser.
* Your own visits as a logged-in administrator are left out (you can switch this off).

A GetSiteTape account is needed. The Free plan includes 5,000 replays a month, with no card and no expiry.

== External services ==

This plugin loads the GetSiteTape tracking script, which is a hosted service. Nothing is loaded until you save a site key.

* **What it is:** the GetSiteTape recorder, served from `https://cdn.getsitetape.com/getsitetape.js`.
* **When:** on every front-end page view of your site, except for logged-in administrators when that setting is on.
* **What is sent:** the script records the visit (the pages viewed, clicks, scrolling, page changes, device and browser details, JavaScript errors and network request details) and sends it to `https://getsitetape.com`. Password fields are masked in the browser before anything is sent, and you can mask every form field and hide any element from your GetSiteTape site settings.
* **Who provides it:** GetSiteTape. [Terms of Service](https://getsitetape.com/terms) · [Privacy Policy](https://getsitetape.com/privacy)

If your site needs visitor consent before recording, turn on consent mode in your GetSiteTape site settings and call `wsr.consent(true)` when a visitor accepts.

== Installation ==

1. In your WordPress admin, go to **Plugins → Add New Plugin → Upload Plugin**, choose the downloaded `getsitetape-wordpress-plugin.zip` and click **Install Now**, then **Activate**.
2. Go to **Settings → GetSiteTape**.
3. Paste your site key (from your GetSiteTape dashboard, under Sites → Install code) and click **Save Changes**. You can also paste the whole tracking code; the key is read from it.
4. Visit your site in a private window. Your first recording appears in the dashboard about ten seconds later.

If you use a caching plugin, clear its cache after saving the key, so visitors are served pages that include the tracker.

== Frequently Asked Questions ==

= Where do I find my site key? =

In your GetSiteTape dashboard, open your site and go to **Install code**. The key is the 20 letters and numbers after `sid=` in the tracking code.

= I already pasted the tracking code into a header plugin. Do I need this? =

No. Use one or the other. If you switch to this plugin, remove the code from the header plugin so visits are not recorded twice.

= How do I check it is working? =

Open your site with `?wsr_diagnostics=true` at the end of the address, in a private window. A small console shows what the recorder is doing.

= Can I stop it recording certain pages? =

Yes. On the plans with targeting controls, choose the pages to record in your GetSiteTape site settings. On any plan, a developer can use the `getsitetape_should_track` filter in your theme: return `false` to leave a page out.

== Changelog ==

= 1.0.0 =
* First release.
