Ghost/ghost/link-replacement
Simon Backx 699e67f4e4
Added email_track_clicks setting (#15409)
fixes https://github.com/TryGhost/Team/issues/1900
refs https://github.com/TryGhost/Team/issues/1901

- Defaults to the same value as the current email_track_opens setting for existing installations, otherwise defaults to true
- Had to use a custom migration because the `addSetting` helper doesn't support using an existing setting as current value
- Added a minimal UI to change the setting, but this still needs some design magic 🪄
- Link replacement is disabled if `email_track_clicks` is disabled. In the future we might consider to still do parial additions, such as source attribution and maybe redirects (to discuss).
2022-09-15 15:48:22 +02:00
..
lib Added email_track_clicks setting (#15409) 2022-09-15 15:48:22 +02:00
test Added email_track_clicks setting (#15409) 2022-09-15 15:48:22 +02:00
.eslintrc.js Added dummy link replacement service 2022-09-13 15:41:13 +02:00
index.js Added dummy link replacement service 2022-09-13 15:41:13 +02:00
package.json Wired up member attribution from email clicks (#15407) 2022-09-14 15:50:54 -04:00
README.md Added dummy link replacement service 2022-09-13 15:41:13 +02:00

Link Replacement

Replace links in a HTML string to add attribution and link tracking

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests