WPIntell

Source evidence

WP/Jetpack stats gone missing

Async JavaScript · support · 2023-05-06T10:42:00+00:00

mixedsentiment
mediumseverity
0.72relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Huckleberry resolved
A few days ago WP/Jetpack stopped reporting stats, and it was because the img-tag line below was gone. It reappeared when I deactivated Async JavaScript, which was set to “Defer” scripts. <img src="https://pixel.wp.com/g.gif [...] width="6" height="5" id="wpstats"> </body> </html> interesting Huckleberry; AsyncJS does not touch images, but it obviously does defer JS, which is also used by Jetpack stats, so I would assume the problem is rather with Jetpack stats JS being deferred instead the image which AsyncJS would (should) just leave be? frank I tried a few things that did not change anything with Async JavaScript activated: Deactivated lazy loading and site accelerator under “Performance & speed” settings in Jetpack Deactivated Jetpack But, then I changed “Defer” to “Async” in your plugin and the img tag reappeared. As requested I added stats.wp.com under “Script Exclusion” and it works. Thank you!

Comments

3 shown
Optimizing Matters 2023-05-06T10:51:00+00:00

interesting Huckleberry; AsyncJS does not touch images, but it obviously does defer JS, which is also used by Jetpack stats, so I would assume the problem is rather with Jetpack stats JS being deferred instead the image which AsyncJS would (should) just leave be? frank

Huckleberry 2023-05-06T11:12:00+00:00

I tried a few things that did not change anything with Async JavaScript activated: Deactivated lazy loading and site accelerator under “Performance & speed” settings in Jetpack Deactivated Jetpack But, then I changed “Defer” to “Async” in your plugin and the img tag reappeared.

Huckleberry 2023-05-07T18:39:00+00:00

As requested I added stats.wp.com under “Script Exclusion” and it works. Thank you!