AMP pages are often served from an AMP Cache and the ability to maintain a session by using a third-party cookie allows publishers to remember user settings and preferences even when users move between the AMP cache domain and the publisher’s domain.
AMP Linker is a new feature in AMP that helps keep user session in sync. It works by decorating outgoing links from AMP cache with params such as AMP Client ID in a URL parameter. On the receiving side, your analytics provider consumes the parameter and writes it down as a first-party cookie.
You will find this option in WordPress Admin Area -> Navigate to AMP option panel -> Settings -> Go to in Analytics option
- Google Analytics: Once you enable this option “AMP Linker” option will display.
- AMP Linker: Once you enable this option then the linker will be added to all your AMP pages and you can also check it in the source code.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.