Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

How to find the Page ID of the same page where the AMP script is written

$
0
0

Print Page ID on Landing page using AMPscript

I am in the process of creating a page to store information from customers who come to the landing page. I want to write it as follows, and I have had no issues storing other information in the Data Extension.

%%[set @id = RequestParameter('userid')set @SysDate = Now(1)set @timestamp = SystemDateToLocalDate(@SysDate)set @email = lookup("Customer Master Test","Email","UserId",@id)set @phone = lookup("Customer Master Test","MobilePhone","UserId",@id)set @country = lookup("Customer Master Test","Country","UserId",@id)InsertData("Click_dataextension","UserId",@id,"EventType","Click","ClickDate",@timestamp,"Email",@email,"MobilePhone",@phone,"CountryCode",@country,"PageID",%%_EmailID%%)]%%

Additionally, I want to store the Page ID, and I tried putting %%_EmailID%% according to the attached post, but it didn't work.When I created a new page to see how %%_EmailID%% is displayed, it only appears as 0.

Landingpage Edit -> What I wrote

Preview -> preview

How can I find the Page ID of the page where the AMP script is written? (the same page)


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>