javascriptamp-htmlgoogle-amp

Google AMP - Save current page URL to local storage


Can anyone point me in the right direction? I'm building a landing page that is supposed to store the current page URL with query strings to local storage. I've looked all over, but can't find a solution that will keep my AMP page valid.


Solution

  • This is not possible with AMP as you can't run custom Javascript. This means you won't be able to read from local storage either.