Docs › Account

Your own storage (R2 / S3)

Keep recordings in your own Cloudflare R2 or Amazon S3 bucket.

You can keep session recordings in a storage bucket that you own, on Cloudflare R2 or Amazon S3. This is how the free plan works, and it is also useful if your company wants recordings to stay in its own cloud account.

How it works

  • While a visit is happening, its recording is collected by SitePluse as usual, so Live view keeps working.
  • Once a visit has been quiet for about 2 minutes, its recording is packed into one file per page view and uploaded to your bucket. Our copy is then deleted.
  • When you watch a recording, your browser loads it straight from your bucket through a short-lived signed link (valid for one hour). If your bucket does not allow that yet, it is loaded through SitePluse instead.
  • Reports such as heatmaps, funnels, journeys, form analytics, error logs and events are calculated from small summaries we keep, so they keep working.
  • Shared links, downloads (HTML or JSON) and the REST API work the same as with our storage.

Recordings are saved under a folder prefix (default sitepluse/) as sessions/YEAR/MONTH/DAY/WEBSITE/VISIT/….json.gz.

Cloudflare R2

  1. In the Cloudflare dashboard open R2 Object Storage and click Create bucket. Give it a name, for example sitepluse-recordings. Keep the bucket private; do not turn on public access.
  2. Copy your Account ID. It is shown on the R2 overview page.
  3. Click Manage R2 API tokens → Create API token. Choose Object Read & Write and, under Specify bucket, select only the bucket you just created. Create the token and copy the Access Key ID and Secret Access Key. The secret is only shown once.
  4. Open the bucket's Settings → CORS policy and add the policy shown on your website's storage settings (see CORS below).

Amazon S3

  1. In the AWS console open S3 → Create bucket. Pick a name and the region closest to you. Leave Block all public access turned on.
  2. Open IAM → Users → Create user (for example sitepluse-uploader). Do not give it console access.
  3. Attach an inline policy that only allows this bucket (replace YOUR-BUCKET):
    {
      "Version": "2012-10-17",
      "Statement": [
        {"Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketCORS", "s3:PutBucketCORS"],
         "Resource": "arn:aws:s3:::YOUR-BUCKET"},
        {"Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"],
         "Resource": "arn:aws:s3:::YOUR-BUCKET/*"}
      ]
    }
    The two CORS permissions are optional. With them, SitePluse sets up CORS for you; without them, add it yourself as below.
  4. Open the user's Security credentials → Create access key (choose Application running outside AWS) and copy the Access key and Secret access key.

Connect the bucket

  1. In SitePluse, open the website and go to Settings → Where recordings are stored.
  2. Choose My Cloudflare R2 or My Amazon S3 and fill in the bucket name, the Account ID (R2) or region (S3), and the access key and secret.
  3. Click Save & test connection. We upload, read and delete a small test file. If anything is wrong you will see the reason, for example a wrong secret or a missing permission, and recordings stay on SitePluse until it works.

Your secret key is stored encrypted and is never shown again. To change it, type a new one; leave the field empty to keep the current one.

CORS (for fast playback)

To let your browser load recordings straight from the bucket, the bucket must allow GET requests from your SitePluse address. We try to set this up automatically. If that is not allowed, your settings page shows the exact policy to paste, which looks like this:

[
  {
    "AllowedOrigins": ["https://app.sitepluse.io"],
    "AllowedMethods": ["GET"],
    "AllowedHeaders": ["*"],
    "MaxAgeSeconds": 3600
  }
]

Without CORS, recordings still play; they are just passed through SitePluse on the way.

Keeping and deleting recordings

  • When you delete a recording or a website in SitePluse, its files are deleted from your bucket as well.
  • The data retention setting still applies: older recordings are removed from your bucket automatically.
  • You can also add a lifecycle rule in R2 or S3 to delete files after a number of days.
  • Use Upload waiting recordings now on the storage settings to upload finished visits straight away instead of waiting.

Good to know

  • If you delete the bucket, remove the access key or take away its permissions, recordings stored there can no longer be played. Reports still show their numbers.
  • If uploads fail (for example the key expired), recordings wait on SitePluse and the storage settings show the problem. Fix it and click Upload waiting recordings now.
  • Switching back to SitePluse storage only affects new visits. Recordings already in your bucket stay there and keep playing as long as the key works.
  • You pay your storage provider directly. Recordings are compressed, typically a few hundred KB per visit. Cloudflare R2 includes 10 GB of storage each month free and does not charge for downloads.
  • On the free plan a website only starts recording once its bucket is connected, and the plan's monthly sessions are shared by all your websites. Once they are used up, new visits are not recorded until the next month.

Can't find what you need? E-mail session@sitepluse.io.