![]() ![]() Then choose the “update file” button and it will save your analytics code into your AMP pages. Scroll down to the end, then place your Analytics javascript code above the tag. Towards the bottom you will find “amp/templates/single.php” and then click on it. On the right hand sidebar you will see all the AMP related pages available for editing. From the drop down on the right, select AMP, then hit the select button. Next, select the Plugins option within the WordPress admin dashboard, then select Editor. But even though the plugin strips it out, AMP pages will still validate with Google Analytics code, but you need to add it manually.įirst, make sure your AMP plugin is up to date, since the modifications can be stripped out when it is updated. Java is a registered trademark of Oracle and/or its affiliates.If you have implemented the official AMP plugin for WordPress, you have probably discovered that the plugin strips out the Google Analytics code from all AMP pages. For details, see the Google Developers Site Policies. To learn more about setting up signed exchange for AMP pages, visitĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. You must publish AMP content as a signed exchange in addition to the regular AMP HTML format.Ĭurrently, signed exchange is only supported in Google Search for rich results and basic To provide users with results in this format, Viewer in browsers that support signed exchange. Google Search prioritizes linking to content as signed exchange over using the Google AMP Your page appears under your URL instead of the /amp URL. About signed exchangeĪ signed exchange allows you to use first party cookies to customize content and measureĪnalytics. Because you choose the behaviors and vendor integrations in your AMP page, youĪre responsible for fulfilling the compliance obligations that result from those choices. Whose content is displayed in the Google AMP Viewer, your data collection is governed by your Data collection by Google is governed by Google's The Google AMP Viewer may render when our systemsĭetermine it can provide a helpful user experience, especially in situations where swiping The Google AMP Viewer is a hybrid environment where you can collect data about the user inīrowsers that support the Google AMP Viewer. Signed exchange: A technology that allows the browser to treat a document.Viewer, the domain of your content is displayed so that users understand who published Google AMP Viewer: At the top of the Google AMP.When users click your AMP content in Google Search, AMP content may be shown in one of two ways: For more information on placement,ĪMP pages can also appear as Web Stories. ![]() If you have duplicate pages for the same content, place the same structuredĭata on all page duplicates, not just on the canonical page. Structured data will enable a rich result in Search results. Important to note that Google doesn't guarantee that adding ![]() To help Google better understand your page, you can add Initial display in Search resultsĪMP pages can appear in Google Search as a rich result, Served from the Google AMP Cache/AMP Viewer. Make these pages appear instantly, such as prerendering. Google AMP Cache, enabling a variety of load optimizations that often When users select an AMP page, Google Search retrieves the page from the Pages, regardless of the technology used to build the page. Google Search applies the same standard to all While AMP itself isn't aįor Google Search. When an AMP page is available, it can beįeatured on mobile search as part of rich results and carousels. Pages to provide a fast, reliable web experience. Understand how AMP works in search results ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |