readthedocs / ext-theme

Read the Docs drop in replacement site templates
2 stars 2 forks source link

Port website Plausible jquery plugin #317

Closed agjohnson closed 7 months ago

agjohnson commented 7 months ago

This moved over easily, we're doing much of the same things on the website. The event tracking might interfere with some default SUI/Lit JS event handling, it hasn't been tested thoroughly here yet.

agjohnson commented 7 months ago

Using an external request <script> is the easiest method, but on our website and application we use a more thorough method and install it as a package. On both properties, the JS we use is installed as a package (giving us dependency pinning), and included in our bundle, ensuring there aren't any outside requests to fail our JS. The noted additions about tracking individual events on both the website/application are important too -- though we aren't yet using events on the application.