This demo shows how to replay recorded user journeys of your website on Cloud Run jobs.
- Use Chrome DevTools' Recorder to record critical user journeys for your publicly accessible website.
- Export the replay using DevTools' Recorder export feature
- Save the exported
.js
file under thejourneys/
folder.
- Install the
gcloud
command line. - Create a Google Cloud project.
Run ./replay_on_gcp.sh
to setup and run a Cloud Run job to replay critical
user journeys. See replay_on_gcp.sh for details.
Run ./replay_every_day.sh
to create a Cloud Scheduler Job that will run the
Cloud Run Job every day. See replay_every_day.sh for
details.
The following steps assume you have docker
installed on your local machine. If you don't proceed to the next section to deploy to Google Cloud.
Build with:
docker build . -t user-journeys-demo
Run locally:
docker run --cap-add=SYS_ADMIN user-journeys-demo