Is there any personalization string to retrieve cloud page ID within the same cloud page as i am using the smart capture form on it i have cloud page id as a hidden field. I am adding it to the data extension so we can track consent and versions of the Cloud page.
1 Answer
If it's a parameter on the URL then you could use ampscript RequestParameter()
function.
See https://salesforce.stackexchange.com/a/146831/45908.
If you want the full URL then you could get it with JavaScript : window.location.href
-
Ya i tried it sorry i should have mentioned that when i used %%_EmailID%% getting blank or zero. Jan 10, 2018 at 18:16
-
Does it have to be the cloud page of? Or could you not log the URL instead?– GravitaiJan 10, 2018 at 18:20
-
I can live with URL too how can i retrieve the url? eventually my goal is to send back this info to sales cloud Jan 10, 2018 at 18:42