Logging - Significance & Importance

 Logging - Significance & Importance


Why it is so important to log when we already have data views that already logs the interactions?
It is important because data views are system defined data extensions and you can't add extra information like campaign name , exposure and offers.
Send Logging provide the ability to obtain run-time information about email send data not available via standard reporting functions. Send Logging can be a powerful tool for reporting on and troubleshooting email sends.

How to configure SENG LOG for Marketing Cloud ?

https://help.salesforce.com/s/articleView?id=000333925&type=1

https://help.salesforce.com/s/articleView?id=sf.mc_es_send_logging.htm&type=5

https://trailhead.salesforce.com/es-MX/content/learn/modules/marketing-cloud-data-management/collect-data-with-a-send-log

https://help.salesforce.com/s/articleView?id=sf.mc_es_send_logging_best_practices.htm&type=5


How to log custom attributes that we created in our send log?

If your AMPScript variable matches with the attribute name of the Send Log or matches with the Personalization string, its get recorded into your Send Log automatically, if it doesn't match create a content block , WRITE AMPSCRIPT BLOCK AND ASSIGN AMPSCRIPT VARIABLE TO THE EMAIL PERSONALIZATION STRINGS and call the content block into an email.

%%[
 SET @utm_campaign = __AdditionalEmailAttribute1
 SET @utm_source = __AdditionalEmailAttribute2
 SET @SubscriberKey = _subscriberkey
 SET @EventDate = GetSendTime()
 SET @View_Link = view_email_url
 SET @Email_Id = _emailid
 SET @Email_Name = emailname_
 SET @Email = emailaddr
]%%


How to analyze, if email were sent or not and if email were not sent what was the reason it was not sent?


solution 1 :
Join _JourneyActivity with _sent data views (JourneyActivityObjectID corresponds to TriggererSendDefinitionObjectID in the _Sent, _Open, _Click, and _Bounce, data views)
 
Solution 2 (Defining data flow model ) :
step 1 : Enable send log and add custom attribute (Campaign)
step 2 : Add Campaign in AdditionalEmailAttribute1
step 3 : include Ampscript %%[set @Campaign= _AdditionalEmailAttribute1]%% in your email
step 4 : Perform send via journey or Automation or Guided send
step 5 : Write a query joining SendLog with Target Data extension filter with Campaign

 

CUSTOMERS WHO RECIEVED EMAIL FOR A CAMPAIGN

Select Attr1, Attr2 ... AttrN
From SendLog inner join <<TargetDE>> on SendLog.Subscriberkey=<<TargetDE>>.SubscriberKey
Where SendLog.Campaign IN ('Campaign1') and SendLog.EventDate=GetDate()
 

CUSTOMERS BOUNCED FROM CAMPAIGN SEND

Select Attr1, Attr2 ... AttrN
From SendLog inner join _Bounce
on SendLog.JobId=_Bounce.JobId
and SendLog.ListId=_Bounce.ListId
and SendLog.batchId=_Bounce.batchId
and SendLog.eventdate=_Bounce.eventdate
Where SendLog.Campaign IN ('Campaign1')
 

CUSTOMERS UNSUBSCRIBED FROM CAMPAIGN

Select Attr1, Attr2 ... AttrN
From SendLog inner join _Unsubscribe
on SendLog.JobId=_Unsubscribe.JobId
and SendLog.ListId=_Unsubscribe.ListId
and SendLog.batchId=_Unsubscribe.batchId
and SendLog.eventdate=_Unsubscribe.eventdate
Where SendLog.Campaign IN ('Campaign1')


COUTN NO. OF EMAILS SEND PER SECOND


select top 20000 count(SubscriberKey), convert(varchar, EventDate, 20) as EventDate,JobID,utm_campaign
from Send_Log
where datediff(d,EventDate,getdate())=11
and utm_campaign='CAMPAIGN1'
group by EventDate,JobID,utm_campaign
Order by EventDate desc



Comments

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


Knowledge Article

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

SEND LOG EANBLEMENT

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.