0

I'm using AMPScript in an email to do lookups and decide which content area to include.

Is there any way to know which content area was included for each recipient? Ideally I'd like to pull this info via the REST API.

0

Yes. Impression Regions will track that information, however there's not a lot of retrievable data available, other than the two canned reports.

The Impression Region name cannot be an AMPScript variable.

I believe support has to enable the canned reports.

If you'd rather have some more flexibility, you can build it yourself using AMPScript variables and the Send Log. Basically, you determine what version of the email the subscriber is getting, set a variable like @emailCode, and then enable Send Logging on the send. If you have an emailCode column in your Send Log, then it'll get recorded. Then it's accessible via Query Activity and API. Send Logging has to be enabled by SFMC Support.

| improve this answer | |
  • Send Log definitely looks like it'll work. If we don't have either of these things enabled now, is there any way to extract this info for already-sent emails? – Joe LeKostaj May 25 '16 at 14:00
  • No. You have to have the Impression Region AMPScript in your emails for the data to be aggregated. – Adam Spriggs May 25 '16 at 14:03
  • Ok, got it. And if we do add impression regions to the code, is there any way to extract that data via the API as is? Or do we need to use Send Logging for that? – Joe LeKostaj May 25 '16 at 16:03
  • I'm not aware of a way to extract it via API directly. You can get the data in a file with a Tracking Data Extract. Technically you can create that Extract and execute it via API, but the end result is a file. – Adam Spriggs May 25 '16 at 16:36
  • Tracking Extract is definitely a bit hacky, but it'll work. Thanks for your help! – Joe LeKostaj May 25 '16 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.