In my refactor #22137 to move variable service to the document level shadow root was not handled correctly. This causes amp analytics in shadow mode to throw and not send analytics pings.
Plan to fix this, and hopefully prevent similar issues in the future: