I need to pull the name of a landing page and post it to a DataExtension via the WebCollect form.

Is there some personalization string or AMPScript variable that I can reference on my landing page to obtain its name.

It would be great if i could do soemthing similar to the following:

VAR @LPname
SET @LPname= [Landing Page Name]

IF not empty(@LPname) THEN]%% 
My landing page name is %%=v(@LPname)=%%. 



All of the built-in personalization strings are listed on Personalization String wiki page. There aren't any for Landing Page names.

There's nothing stopping you from creating a variable for it -- like in your example. It'd be a static value, obviously.

Not sure why you'd conditionally hide/show content based on the name of the page. Perhaps you can update your question with some additional details about your use-case.

| improve this answer | |
  • 1
    I just need to pass the landing page name to a form variable so that it can be captured alongside the other form elements to a data extension using the DEManager. – Robert Reid Apr 5 '17 at 23:05

In classic content microsites, %%emailname_%% will return the "name" property of the current page.

| improve this answer | |
  • Are you sure about that? – Adam Spriggs Dec 24 '17 at 2:10
  • Yes, I have a page named "SSJS Test," and on that page, %%emailname_%% was replaced with "SSJS Test." I tested it before posting. – Clayton VonDras Dec 24 '17 at 5:53
  • @AdamSpriggs did you ever test this yourself? – Clayton VonDras Mar 14 '19 at 21:57
  • Did you arrive at your test page by clicking a link in your email or did you go to the page directly? – Adam Spriggs Mar 14 '19 at 22:31
  • @AdamSpriggs We generally link to landing pages by URL like https://hostname/lp-name/%%_subscriberkey%% so we can use query string parameters client-side without fuss, and the behavior is as stated above; however, I'll concede that it's not a solution iff the link is constructed with the %%=MicrositesURL()=%% function. – Clayton VonDras Mar 14 '19 at 23:12

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.