Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Document Plausible configuration deployment & deprecated custom properties (#2824)

sarayourfriendd73e5c277395
diff --git a/documentation/frontend/guides/analytics.md b/documentation/frontend/guides/analytics.md
index 1efc7ed2b..7973469d8 100644
--- a/documentation/frontend/guides/analytics.md
+++ b/documentation/frontend/guides/analytics.md
@@ -106,21 +106,8 @@ section before this will do anything.**
- `width`: The width of the screen in pixels at the time of the event
- `height`: The height of the screen in pixels at the time of the event
-- `timestamp`: ISO formatted UTC timestamp of the time the event was sent
-- `language`: The language the site was in when the event was sent
- `breakpoint`: One of the Openverse breakpoint values, for determining broad
page layout for a given event
-- `ua`: The full user agent string
-- `os`: The operating system of the user, extracted from the user agent string
-- `platform`: The platform of the user, extracted from the user agent string
-- `browser`: The name of the browser vendor, extracted from the user agent
- string
-- `version`: The browser version, extracted from the user agent string
-- `origin`: The origin of the custom event, in production this will always be
- `openverse.org` or `production.openverse.org`
-- `pathname`: The path the user was on when the event was triggered
-- `referrer`: The URL of the page that referred the user to the current page, if
- any
While these are included by default, any of them may not be present for a given
event instance if the information was not available at the time. For example,
diff --git a/documentation/frontend/guides/deploy.md b/documentation/frontend/guides/deploy.md
index 68d862d92..e89fe471e 100644
--- a/documentation/frontend/guides/deploy.md
+++ b/documentation/frontend/guides/deploy.md
@@ -33,3 +33,34 @@ For more information on how deployments work, please see the [general deployment
number in the [changelogs](/changelogs/index), and then the tag to pass to
the action is the version number prefixed with "rel-", for example
"rel-2023.07.03.17.52.00".
+1. Add any new analytics events to Plausible:
+
+ 1. Visit
+ [the "Goals" configuration page](https://plausible.io/openverse.org/settings/goals)
+ and add any new events.
+ 1. If those events have new unique payload property names, those must also be
+ added
+ [to the "Custom properties" configuration](https://plausible.io/openverse.org/settings/properties).
+
+ ```{warning}
+ **Do not click the "click to add all existing properties" button!** This button
+ will cause all props to be added and therefore displayed on events, [even ones we've
+ explicitly removed](https://github.com/WordPress/openverse/commit/53c2e70171e22593027b184b599c530a47429a03).
+ Instead, manually add new custom properties one at a time by entering them into
+ the input box on the page. If the event has already been sent once, the property
+ names will auto-complete in the box, making it less tedious to add new ones.
+
+ If you accidentally click this button, please manually delete the following
+ deprecated properties from the configuration:
+
+ - `timestamp`
+ - `language`
+ - `ua`
+ - `os`
+ - `platform`
+ - `browser`
+ - `version`
+ - `origin`
+ - `pathname`
+ - `referrer`
+ ```
diff --git a/documentation/frontend/guides/develop.md b/documentation/frontend/guides/develop.md
deleted file mode 100644
index 696ed2f78..000000000
--- a/documentation/frontend/guides/develop.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Development guide
-
-Here's the comprehensive guide for developing the Openverse frontned.
diff --git a/documentation/frontend/guides/index.md b/documentation/frontend/guides/index.md
index 8261f3340..7a0562669 100644
--- a/documentation/frontend/guides/index.md
+++ b/documentation/frontend/guides/index.md
@@ -4,7 +4,6 @@
:titlesonly:
quickstart
-develop
deploy
test
analytics