Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Optymalizowanie treści AMP pod kątem wyszukiwarki Google
Treści AMP możesz zoptymalizować pod kątem wyszukiwarki Google. Wystarczy, że utworzysz podstawową stronę AMP, dodasz uporządkowane dane, będziesz monitorować strony i wykonasz kilka ćwiczeń z programowania.
Tworzenie podstawowej strony AMP
-
Utwórz swoją pierwszą stronę AMP.
-
Przestrzegaj wytycznych dotyczących stron AMP w wyszukiwarce Google.
-
Zadbaj o wykrywalność treści, tworząc linki do swoich stron.
Aby wyszukiwarka Google mogła zeskanować i zindeksować stronę AMP, strona ta musi zawierać link do strony kanonicznej. Może to być ta sama strona AMP lub wersja strony inna niż AMP. Więcej informacji znajdziesz w tym poście na blogu dla deweloperów (w języku angielskim): What's in an AMP URL?
(Co zawiera URL strony AMP?).
-
Sprawdź, czy na stronach AMP użytkownicy mają w miarę możliwości dostęp do tych samych treści i funkcji co na odpowiadających im stronach kanonicznych.
-
Za pomocą narzędzia do testów AMP sprawdź, czy Twoje strony spełniają wymagania wyszukiwarki Google w zakresie prawidłowych dokumentów AMP HTML.
- Użyj tych samych znaczników uporządkowanych danych na stronie kanonicznej i stronie AMP.
- Skorzystaj ze sprawdzonych metod dotyczących treści:
- Sprawdź, czy plik robots.txt nie blokuje strony AMP.
W razie potrzeby użyj tagów robots
meta
, data-nosnippet
i X-Robots-Tag
.
- Postępuj zgodnie z wytycznymi dotyczącymi stosowania atrybutu hreflang w adresach URL różnych wersji językowych lub regionalnych. Przykłady dotyczące stron AMP znajdziesz w artykule o internacjonalizacji.
Tworzenie strony AMP za pomocą systemu CMS
Jeśli do wyświetlania swoich treści internetowych używasz systemu zarządzania treścią (CMS), możesz użyć istniejącej wtyczki CMS (takiej jak WordPress, Drupal czy Joomla) lub zaimplementować w systemie CMS funkcję niestandardową, by wygenerować treść AMP. Jeśli zamierzasz dostosować swój system CMS, oprócz przestrzegania wytycznych z sekcji Tworzenie podstawowej strony AMP weź pod uwagę te wskazówki:
- Zastanów się, gdzie umieścić pliki AMP HTML w schemacie ścieżki URL witryny. Jeśli wersja kanoniczna strony nie jest stroną AMP, a wersję AMP generujesz jako dodatkową, zalecamy wybranie jednego z tych schematów adresu URL:
- https://www.example.com/myarticle/amp
- https://www.example.com/myarticle.amp.html
- Utwórz szablon znaczników uporządkowanych danych. Oto kilka wskazówek:
- Utwórz szablon, biorąc pod uwagę wymagania związane z typem publikowanej treści.
- Zapoznaj się z przykładami metadanych projektu AMP (strona dostępna w języku angielskim). Znajdziesz tam przykładowe szablony przepisów, artykułów, filmów i recenzji.
Optymalizacja pod kątem wyników z elementami rozszerzonymi
Aby poprawić wygląd swojej strony w wynikach wyszukiwania, możesz użyć uporządkowanych danych. Strony AMP z uporządkowanymi danymi mogą wyświetlać się jako wyniki z elementami rozszerzonymi, np. w karuzeli „Najważniejsze artykuły” lub karuzeli hosta.
- Zastosuj uporządkowane dane.
- Sprawdź, czy uporządkowane dane są prawidłowo analizowane, korzystając z testu wyników z elementami rozszerzonymi.
- Za pomocą narzędzia do testów AMP sprawdź pełną wersję strony AMP pod kątem wyszukiwarki Google.
Monitorowanie i ulepszanie stron
Sprawdzaj okresowo wszystkie swoje strony AMP, przeglądając te raporty:
Informacje o natychmiastowej aktualizacji Google AMP Cache w celu wyświetlenia najnowszej wersji Twoich treści znajdziesz w artykule Aktualizacja treści AMP.
Jeśli chcesz, by Twoje strony AMP przestały się wyświetlać w wyszukiwarce Google, przeczytaj artykuł o usuwaniu takich stron z wyników wyszukiwania Google.
Ćwiczenia z programowania
Oto kilka ćwiczeń, które pozwolą Ci nabrać wprawy w tworzeniu stron AMP pod kątem wyszukiwarki Google:
- W ramach kursu podstawowego (dostępnego w języku angielskim) dowiesz się, jak tworzyć strony AMP.
- Na kursie zaawansowanym (dostępnym w języku angielskim) poznasz sposoby dodawania statystyk, osadzania filmów, przeprowadzania integracji z mediami społecznościowymi czy umieszczania karuzeli obrazów na stronach AMP.
- Kurs z zakresu atrakcyjnych, interaktywnych i kanonicznych stron AMP (dostępny w języku angielskim) pozwoli Ci tworzyć strony AMP wzbogacone o różne funkcje i rozszerzone komponenty.
- Z tego kursu (w języku angielskim) dowiesz się, jak używać komponentów stron AMP do tworzenia PWA.
Zasoby
Po utworzeniu stron AMP możesz zapoznać się z kilkoma zasobami, z których dowiesz się więcej o innych zintegrowanych usługach na potrzeby stron AMP:
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-04 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-04 UTC."],[[["\u003cp\u003eEnhance your website's visibility on Google Search by creating AMP pages that load quickly and provide a seamless user experience.\u003c/p\u003e\n"],["\u003cp\u003eOptimize your AMP pages for rich results using structured data to improve their appearance and prominence in search results.\u003c/p\u003e\n"],["\u003cp\u003eRegularly monitor your AMP pages using Google Search Console reports to identify and resolve any issues, ensuring optimal performance.\u003c/p\u003e\n"],["\u003cp\u003eLeverage codelabs and resources to learn best practices and further enhance your AMP pages with advanced features and integrations.\u003c/p\u003e\n"],["\u003cp\u003eExplore Google's product integrations for AMP to monetize your content, track user engagement, and optimize marketing initiatives.\u003c/p\u003e\n"]]],["To enhance AMP content for Google Search, create a basic AMP page, ensuring it links to a canonical page and uses consistent structured data. Optimize for rich results by implementing structured data and validating it with testing tools. Monitor pages for errors with status reports. Practice building AMP pages using codelabs. Ensure content is accessible to users and search engines. Use resources to learn how to integrate AMP with ads, monetization, and analytics.\n"],null,["# Enhance AMP Content for Google Search | Google Search Central\n\nEnhance AMP content for Google Search\n=====================================\n\n\nYou can enhance your [AMP](/amp) content for Google\nSearch by creating a basic AMP page, adding structured data, monitoring your pages, and\npracticing with codelabs.\n\nCreate a basic AMP page\n-----------------------\n\n1. [Create your first AMP page](https://www.ampproject.org/docs/get_started/create).\n2. Follow the [Google Search guidelines for AMP pages](/search/docs/crawling-indexing/amp).\n3. Make your content [discoverable by linking your pages](https://www.ampproject.org/docs/guides/discovery). For crawling and indexing, Google Search requires that an AMP page links to a [canonical page](/search/docs/crawling-indexing/consolidate-duplicate-urls). The canonical page can be either a non-AMP version of the page or it can be the AMP page itself. For more information, see the [What's in an AMP URL?](https://developers.googleblog.com/2017/02/whats-in-amp-url.html) developer blog post.\n4. Ensure that users can experience the same content and complete the same actions on AMP pages as on the corresponding canonical pages, where possible.\n5. Use the [AMP Test Tool](https://search.google.com/test/amp) to ensure that your page meets the Google Search requirements for a valid AMP HTML document.\n6. Use the same [structured data markup](/search/docs/appearance/structured-data/intro-structured-data) across both the canonical and AMP pages.\n7. Apply common content best practices:\n 1. Make sure that your [robots.txt file](/search/docs/crawling-indexing/robots/robots_txt) doesn't block your AMP page. Use [robots `meta` tags,\n `data-nosnippet`, and `X-Robots-Tag`](/search/docs/crawling-indexing/robots-meta-tag) where appropriate.\n 2. Follow the guidelines for [hreflang for language and regional URLs](/search/docs/specialty/international/localized-versions). For AMP specific examples, see [Internationalization](https://amp.dev/documentation/examples/guides/internationalization/).\n\nCreate an AMP page using a CMS\n------------------------------\n\nIf you serve your web content through a Content Management System (CMS), you can\nuse an existing CMS plugin (such as for [WordPress](https://wordpress.org/plugins/amp/), [Drupal](https://www.drupal.org/project/amp), or Joomla) or implement\ncustom functionality in your CMS to generate AMP content. If you intend to\ncustomize your CMS, follow these guidelines in addition to [Create a basic AMP page](#create-basic-amp):\n\n- Consider how AMP HTML files will fit your site's URL path scheme. If you're generating an AMP page in addition to a canonical non-AMP page, we recommend choosing one of the following URL schemes:\n - https://www.example.com/myarticle/amp\n - https://www.example.com/myarticle.amp.html\n- Develop a structured data markup template. Here are some guidelines:\n - Construct the template based on the requirements for the type of content you are publishing.\n - Refer to [AMP Project metadata examples](https://github.com/ampproject/amphtml/tree/main/examples/metadata-examples) for sample templates for recipes, articles, videos, and reviews.\n\nOptimize for rich results\n-------------------------\n\n\nYou can use structured data to enhance the appearance of your page in search results. AMP pages with\nstructured data can appear as a [rich result](/search/docs/appearance/structured-data/search-gallery),\nlike the Top stories carousel or host carousel.\n\n1. [Implement structured data](/search/docs/appearance/structured-data/intro-structured-data).\n2. Verify that your structured data parses correctly by using the [Rich Results Test](https://search.google.com/test/rich-results).\n3. Verify your complete AMP for Google Search by using the [AMP Test Tool](https://search.google.com/test/amp).\n\nMonitor and improve your pages\n------------------------------\n\n\nPeriodically check all of your AMP pages by monitoring the following reports:\n\n- [AMP status report](https://search.google.com/search-console/amp): Catch site templating and other site-wide implementation issues that can affect large numbers of your AMP pages.\n- [Rich result status reports](https://support.google.com/webmasters/answer/7552505): Identify problems with your structured data and opportunities to provide additional structured data.\n\n\nIf you need to immediately update the Google AMP Cache to serve the latest\nversion of your content, refer to [Update AMP\nContent](/amp/cache/update-ping).\n\nIf you need to stop serving your AMP pages from Google Search results, follow [Remove AMP from Google Search results](/search/docs/crawling-indexing/amp/remove-amp).\n\nPractice with codelabs\n----------------------\n\n\nHere are some codelabs to practice building AMP pages for Google Search:\n\n- Learn how to build AMP pages with the [AMP\n foundations codelab.](https://codelabs.developers.google.com/codelabs/accelerated-mobile-pages-foundations/)\n- Add features like analytics, video embedding, social media integration, and image carousels to your AMP pages with the [Advanced concepts codelab.](https://codelabs.developers.google.com/codelabs/accelerated-mobile-pages-advanced/#0)\n- Build a [beautiful, interactive, and canonical AMP pages codelab](/codelabs/amp-beautiful-interactive-canonical#0) that incorporates many AMP features and extended components.\n- Use AMP components to build a [PWA](/web/progressive-web-apps) experience with the [AMP+PWA codelab](https://amp.dev/documentation/guides-and-tutorials/integrate/integrate-with-apps/).\n\nResources\n---------\n\nNow that you've created your AMP pages, here are some resources for learning more about other Google\nproduct integrations for AMP:\n\n- Learn how to [Create AMP ad\n units.](https://support.google.com/adsense/answer/7183212)\n- Learn how to [monetize your AMP pages](https://support.google.com/dfp_premium/topic/7178122).\n- Use [Google Tag\n Manager](https://support.google.com/tagmanager/answer/9205783) to optimize and measure marketing initiatives.\n- Add [analytics to your AMP pages](/analytics/devguides/collection/amp-analytics) to track user interactions with built-in Google Analytics support."]]