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

Passing value with InsertData to the DE in Cloud Pages with AmpScript doesn't work

$
0
0

I'm trying to create a technical and completely empty landing page in Cloud Pages that's going to be used for passing values to a Data Extension and then redirecting the person to website. I'm new to AmpScript but to achieve this result I prepared the followin:

  • Link redirecting to the Cloud Pages LP in the email
<a href="%%=redirectto(CloudPagesURL(123))=%%"
  • Code in the above-mentioned Cloud Pages LP that is supposed to insert data to the ButtonClicked column of DE (Test_DE) and after that redirect the person to the website.
%%[var @buttonClickedset @buttonClicked = "true"set @insert = insertData("Test_DE","ButtonClicked", @buttonClicked)%%=Redirect('https://google.com/')=%%]%%

This code doesn't work and I'm pretty sure that the problem is with the insertData function as the Redirect worked fine when tested alone. Could you please point me in the right direction? What I'm doing wrong?


Viewing all articles
Browse latest Browse all 472

Latest Images

Trending Articles


Telangana Ration Card Online Status Ahara Bhadratha Card Online Status


CalCen


Waves Complete v2019.02.14 Incl Emulator-R2R


[RELEASE THREAD]--_A-Team_--Cricket_Dream_5G


MCGEE, SAMUEL O., DECEASED, OF...


WordPress: Reverse Shell


GPGT - chio bu back from market kym


Ondonga king dragged to court


Justin Guy Ballou, III


Krupt Biography, Death, Songs, Photo, Video



Latest Images

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