Thank you for a great tip! When implementing this approach in my website, I found that onload event fires after the Plausible script has already attempted to read data-domain attribute.
I fixed the issue by programatically creating the script tag from JavaScript:
Thank you for a great tip! When implementing this approach in my website, I found that
onload
event fires after the Plausible script has already attempted to readdata-domain
attribute.I fixed the issue by programatically creating the script tag from JavaScript: