SEND LOG EANBLEMENT

SEND LOG EANBLEMENT


STEP BY STEP GUIDE HOW TO ENABLE SEND LOGGING IN SALESFORCE MARKETING CLOUD 


STEP 1 : CREATE SEND LOG DATA EXTENSION

  • Create a data extension for Send Log utilizing send log template. You can create similar Send log for SMS, Push etc.,
           

  • Default attributes for Send Log

  • Add custom attributes to send log, custom attributes will increase you query optimization and troubleshooting


If you have Google Analytics enabled you can add utm_campaign and utm_source attributes as well.

  • Best Practice would be to archive send log on a monthly basis and set the retention policy to 6 months. 

STEP 2 : CREATE CODE SNIPPET TO ADD CUSTOM ATRRIBUTES TO SEND LOG 

Default send log attributes gets added to send log by default as it picks from system personalization string 

Email personalization strings can be found in email tool bar: Profile and System Attribute

 
  • Create a code snippet 


  • Write an AmpScript block to add custom attributes to Send Log data extension
                 %%[
set @utm_campaign = __AdditionalEmailAttribute1
set @utm_source = __AdditionalEmailAttribute2
set @SubscriberKey = _subscriberkey
set @EventDate = GetSendTime()
set @ViewLink = view_email_url
set @EmailId = _emailid
set @EmailName = emailname_
set @Email = emailaddr
]%%

** AMPScript variable name should match with the custom attribute you created for Send Log data extension.


  • Pull the Seng Log code snippet during email built to enable custom send logging. From the email content tab, go-to insert code snippet tool bar and select the code snippet you build above.


References :



Comments

  1. Thank you so much @Shashi. It's very helpful and information blog. Kindly share more blogs on SFMC based on real time scenario.

    ReplyDelete
    Replies
    1. Thanks for the feedback. Will definitely add more blogs :)

      Delete
  2. This info is very helpful.. Thankyou @shashi

    ReplyDelete
  3. Thank you Shashi for the great info. can you please write a blog on couponcodes allocation and redemption process using a cloud page in the journey builder. thank you.

    ReplyDelete
    Replies
    1. I think , I have blog about coupon code https://b2shashi.blogspot.com/2022/11/ampscript-claimrow-function.html

      Delete
  4. Hi Shashi how to add custom attributes Campaign ID and Business Unit to the send log data extension

    ReplyDelete
    Replies
    1. %%[
      set @MID= memberid
      set @CampaignID= AttributeValue("CampaignID")

      ]%%

      Make sure your AMPScript variable and Send Log Attribute matches, member id personalization string logs Business Unit , AttributeValue fetches data from Sendable DE or Profile Attribute

      Delete

Post a Comment


Knowledge Article

Most Viewed

CLOUD PAGE ENABLEMENT - PART 1

EMAIL NOT SENT IN JOURNEY BUILDER

CONSIDERATIONS FOR JOURNEY BUILDER

Journey Builder REST API Documentation

Preference Center Demystified

Popular Posts

CLOUD PAGE ENABLEMENT - PART 1

EMAIL NOT SENT IN JOURNEY BUILDER

CONSIDERATIONS FOR JOURNEY BUILDER

Journey Builder REST API Documentation

Preference Center Demystified

Share with Friends

Disclaimer:

The information provided on this technical blog is for general informational purposes only. As a SFMC (Salesforce Marketing Cloud) Technical Architect, I strive to offer accurate and up-to-date content related to SFMC and its associated technologies. However, please note that technology is constantly evolving, and the information provided may become outdated or inaccurate over time.

The content published on this blog represents my personal views and experiences as a SFMC Technical Architect and does not necessarily reflect the official views or opinions of any organization or employer I may be affiliated with.

While I make every effort to ensure the accuracy and reliability of the information presented, I cannot guarantee its completeness, suitability, or applicability to your specific circumstances. Therefore, it is essential to verify any information provided and make your own independent assessments or seek professional advice if needed.

Furthermore, any actions taken based on the information provided on this blog are at your own risk. I shall not be held liable for any damages, losses, or inconveniences arising from the use of the information presented here.

Please keep in mind that SFMC and its associated technologies are complex and require technical expertise for proper implementation and management. It is recommended to consult with qualified professionals or official SFMC documentation for comprehensive guidance.

Finally, please note that any product or company names mentioned on this blog are trademarks or registered trademarks of their respective owners. The mention of these trademarks or registered trademarks does not imply any endorsement or affiliation with the blog.

By accessing and using this blog, you agree to the terms of this disclaimer. If you do not agree with any part of this disclaimer, please refrain from using this blog.