Is it possible to pull in the PageID for a landing page and print it on the page (or place it in a hidden form field)?

What about the ID's of any content areas being used on the page?

Thank you!

1 Answer 1


%%_EmailID%% will display the PageID value also located in Properties.

(Not sure about content area ID, never tried that.)

  • 1
    %%_EmailID%% is what I am looking for. That worked to get the PageID. Thank you! Marked as answered.
    – jake314159
    Sep 15, 2016 at 22:22
  • It's a surprising bonus feature! Pretty sure you could retrieve the IDs of the Content Areas with the AMPScript API functions. It's way more verbose that a personalization string, obviously. Sep 16, 2016 at 14:24
  • Thanks Adam! I may be exploring that in more detail in the future.
    – jake314159
    Sep 16, 2016 at 14:31
  • It works for Landing Pages ...can you have any idea for cloud page ID??? Thanks Srinivas May 31, 2017 at 7:58
  • 1
    On a side note - if the landing page was linked to from an email using MicrositeURL, the %%_EmailID%% will then display the ID of the email that it was linked from, not the Landing Page ID.
    – hndcrftd
    Jun 16, 2017 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.