Projekt Przyspieszonych stron mobilnych (AMP) to witryna typu open source
platforma, która pomaga poprawić wyniki treści internetowych. AMP zawiera
wbudowanej obsługi tagu Google i Menedżera tagów Google. Tematy w tym przewodniku:
jak skonfigurować Google Analytics pod kątem stron AMP.
Instalacja
Tag Google umożliwia instalowanie usług Google Analytics, Google Ads i innych
usług Google na stronach AMP. Menedżer tagów Google konfiguruje kontener AMP
Umożliwia tworzenie zaawansowanych konfiguracji i wdrażanie rozwiązań innych firm
tagów w interfejsie Menedżera tagów.
Wybierz platformę spośród tych przycisków:
Rozwiązywanie problemów
Sprawdź konfigurację tagowania za pomocą amptagtest.appspot.com lub ręcznie
upewnij się, że wartość cid jest spójna we wszystkich domenach, wykonując
:
Usuń pliki cookie lub użyj trybu incognito.
Jeśli w pliku cookie Google Analytics nie ma elementu cid, może również być
na karcie Sieć w przeglądarce. Szukaj: collect request,
, a ładunek powinien zawierać wartość cid.
Gdy przejdziesz z Google CDN do witryny klienta, wartości cid i gclid powinny zostać przekazane za pomocą dekoracji adresu URL:
[null,null,["Ostatnia aktualizacja: 2024-09-10 UTC."],[[["The Accelerated Mobile Pages (AMP) project is an open-source platform designed to enhance web content performance and includes built-in support for Google Analytics integration."],["This guide provides instructions on implementing Google Analytics on AMP pages through either the Google tag for standard setup or Google Tag Manager for advanced configurations and third-party tags."],["Google Tag Manager for AMP is not compatible with Google Analytics 4, necessitating manual snippet addition for GA4 integration with AMP."],["Troubleshooting tagging issues can be done using the provided validation tool or by manually verifying consistent `cid` values across domains, ensuring proper linker functionality and redirect handling."]]],["The core content outlines setting up Google Analytics on Accelerated Mobile Pages (AMP). It details using the Google tag for Analytics and other Google products, or Google Tag Manager for advanced configurations and third-party tags, noting Tag Manager's incompatibility with Google Analytics 4. Troubleshooting involves using amptagtest.appspot.com or manually checking for consistent `cid` values across domains, ensuring `cid` and `gclid` are passed via URL decoration and are the same as initial values, while being cautious with redirects.\n"]]