I'm trying to create a cloudpage and call it into SMS through ampscript - when the user clicks the SMS link through SMS, the contact's phone number will be added to the data extension (and some other predefined fields), such as link URL and date stamp. I created it, but I failed. Is there any good example for me to refer to?
And the code in my CloudPage should look something like this:
%%[var @phone set @phone = RequestParameter('phone') UpsertData('test_SMS',1,'phone',@phone,'Date clicked',Now()) ]%% <a href="https://support.google.com/">click it</a>
And the code in my SMS content should look something like this:
<p> <a title="Some page" href="%%=RedirectTo(CloudPagesURL(2332,'phone',@phone))=%%" alias="Some page"> Click to go there </a> </p>