sul-dlss / was-pywb

Configuration for Stanford's pywb instance
https://swap.stanford.edu
Other
2 stars 0 forks source link

Google Analytics 4 #171

Closed edsu closed 1 year ago

edsu commented 1 year ago

Why was this change made? 🤔

Add the new Google Analytics 4 embed code. pywb has two header templates, one that is used for regular pages (head.html) and one that is used when viewing archived content (banner.html).

An experimental event is also sent with the hostname of the archived website to see if it is helpful in tracking what web content is being viewed in SWAP.

Refs #158

(will close when it is verified to be working in Google Analytics)

How was this change tested? 🤨

Testing locally in Docker. Unfortunately we won't be able to see whether it is working until it is deployed to swap.stanford.edu.

âš¡ âš  If this change has cross service impact (including writing to shared file systems or interacting with other services), run the web archive accession integration test and/or test in [stage|qa] environment, in addition to specs. âš¡