時,$ {documentReferrer}爲空。通過AMP文檔(https://github.com/ampproject/amphtml/blob/master/spec/amp-var-substitutions.md#document-referrer)查看documentReferrer
變量應該反映JS document.referrer
。當document.referrer爲「https://www.google.com/」
雖然documentReferrer
似乎彙報其他域的正確值(如:www.twitter.com,t.co,linkedin.com等)時,頁面的document.referrer
值是「https://www.google.com/」 documentReferrer
是空的。我找不到任何文件表明www.google.com域名有任何額外的警告。
什麼是你期望的結果? – noogui
基於文檔,我期望AMP文章的'documentReferrer'在引用URL時是''https://www.google.com/「'。 –