0

I want to add Impression tracking to a dynamic content block that is added with amp script.

So the dynamic content block looks like this in our email template:

%%=ContentAreaByName("my contents\Content Units\Abandon Cart\TopBanner")=%% %%[ENDIF]%%

How do I add BEGINIMPRESSIONREGION and ENDIMPRESSIONREGION the best way?

0

You will want to add the BEGINIMPRESSIONREGION right after your opening IF statement, and then ENDIMPRESSIONREGION right before the ENDIF. This ensures it is only counted if a subscriber meets that certain condition. Example, assuming you may want to mix in some HTML:

%%[ IF x == y THEN ]%%

%%=BeginImpressionRegion("Section 1: X is equal to Y")=%%

%%=ContentAreaByName("my contents\Content Units\Abandon Cart\TopBanner")=%%

%%=EndImpressionRegion()=%%

%%[ ENDIF ]%%

  • Sorry for my late reply. Thank you for your feedback. I just have one question - the IF/THEN statement is added in the dynamic content block, so when we are adding it to our email template we haven't had the need for a IF/THEN. So how do we then add the BEGINIMPRESSIONREGION? – Trine Nov 27 '17 at 14:19

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.