analytics/tracker
Émile Perron fbd6e37767
Add option to specify a URL in the manual extension (#1479)
* Add option to specify a URL in the manual extension

* Fix error when option parameter isn't provided
The uglify-js dependency had to be updated to support the optional chaining operator

* Remove the possibility to pass a function for the custom URL
This added weight unnecessarily, as the users can simply call the function themselves before triggering the event.

* Change optional chaining to ternary for improved browser support

* Revert package-lock.json to version 3.9.4 of uglify-js
It was previously updated to support optional chaining; reverting it as a reminder that this is the current browser support level that is accepted by Plausible.
2021-11-23 10:50:06 +02:00
..
src Add option to specify a URL in the manual extension (#1479) 2021-11-23 10:50:06 +02:00
compile.js Add 'manual' script variant 2021-10-10 13:07:37 +02:00
LICENSE.md Change Javascript license to MIT (#369) 2020-10-16 11:08:58 +03:00
package-lock.json Add option to specify a URL in the manual extension (#1479) 2021-11-23 10:50:06 +02:00
package.json Changes from static tracker script name assignments to dynamic (#786) 2021-05-18 11:36:12 +03:00