JavaScript analytics are for the feeble-hearted. I worked out how to detect print events using CSS only:
@media print {
html {
background-image: url('https://example.org/im-printing-now');
}
}
Browsers won’t request that image until the user prints. Grep for that in server logs.
@media print {
html {
background-image: url('https://example.org/im-printing-now');
}
}
Browsers won’t request that image until the user prints. Grep for that in server logs.