I would like to store entire url in a variable and insert into a data extension. I know you can grab specific parameters from a url but cant seem to find anything about the entire url with ampscript.

My url looks like this and i want to capture and store the whole thing



1 Answer 1


Do you know what querystring parameters you're going to receive ahead of time? If so, you can probably do this:

SET @StoredURL = CloudPagesURL(URL_ID,'optc',@optc,'ceid',@ceid) InsertDE('Your_DE','URL',@StoredURL)

Not the answer you're looking for? Browse other questions tagged .