Looking through the AMP documentation (https://github.com/ampproject/amphtml/blob/master/spec/amp-var-substitutions.md#document-referrer) is appears that the documentReferrer variable should reflect the JS document.referrer.
While documentReferrer appears to report the correct value for other domains (like: www.twitter.com, t.co, linkedin.com, etc.) when the page's document.referrer value is "https://www.google.com/" documentReferrer is empty. I couldn't find any documentation indicating that the www.google.com domain carried any additional caveats.
documentReferrerto be"https://www.google.com/"when that was the referring URL. - Matt Rohland