Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
51.87 KB
MD5: d12bf9957abb4ed3296f6b5c2c4b2412
SHA-1: c7576b9b583f493b982773e13304c354c6f61895
SHA-256: 2d81a9464ac5ea429800803e939045b8862c9d386f49faa733a1ce00eedc3da6
Download zip
63.34 KB
MD5: 852e768e504b3da27d856ade4198f0ec
SHA-1: cc3b06750dc9ba471814ac0be894e275ad7894db
SHA-256: 7d833e5bd16b45fb8df305c35992954967850c967c90a8976d232348cda60270
Release notes
This new release adds an option to send external link clicks as click.exit events, and fixes server-side events that were never sent for pages served from the page cache.
Upgrade
- No database update. Clear the caches after updating.
- Needed with Short URL 2.0.0-beta2 and Piano Analytics Short URL: Short URL now records visits after the response is sent, and earlier Piano Analytics releases sent queued server-side events before that, so with Piano Analytics 2.4.0 and earlier no short URL visit reaches Piano Analytics.
New features
- #3610323 Send click.exit event on external links, a new setting under the outbound link tracking options (off by default): external link clicks send a
click.exitevent instead ofclick.navigation.
Bug fixes
- #3610324 Server-side events queued while a page was served from the page cache were never sent: the queue was only sent on
kernel.terminate, which Drupal does not dispatch for cached pages. The server-side event sender now sends its queue when it is destructed, after the response, for cached pages too. For a site using Piano Analytics Short URL, that is most short URL visits, which reach Piano Analytics from this release on.
API changes
ServerSideEventSenderimplementsDestructableInterface, andDrupal\pianoanalytics_server\EventSubscriber\DeferredEventSubscriberis removed: code that extended or decorated it has to rely on the sender'sdestruct()instead.