CAPTURE INTERACTIONS DATA LEVERAGING SEND LOGGING

 CAPTURE INTERACTIONS DATA LEVERAGING SEND LOGGING



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

STEP 1 :  SEND LOG ENABLEMENT

Enablement of send logging step by step guide can be found here

STEP 2 :  CREATE DATA EXTENSION FOR INTERACTION LOG

Primary keys : JobId, ListId, BatchId, Eventdate ,Subscriberkey and InteractionEvent


STEP 3 :  BUILD AUTOMATION FOR INTERACTION LOGGING


STEP 4 :  BUILD QUERY ACTIVITIES FOR INTERACTION LOGGING

======================================================================
  • Query Activity for Sent 
======================================================================
Select  
       JobID
      ,ListID
      ,BatchID
      ,SubID
      ,SubscriberKey
      ,EventDate
      ,ViewLink
      ,EmailId
      ,EmailName
      ,memberid
      ,'Sent' as InteractionEvent
      ,GetDate() as ModifiedDate
From
    SendLog
Where DATEDIFF(hh,  EventDate,GetDate())=24

======================================================================
  • Query Activity for Open
======================================================================
Select  
       s.JobID
      ,s.ListID
      ,s.BatchID
      ,s.SubID
      ,s.SubscriberKey
      ,o.EventDate
      ,s.ViewLink
      ,s.EmailId
      ,s.EmailName
      ,s.memberid
      ,'Opened' as InteractionEvent
      ,GetDate() as ModifiedDate
From
    SendLog s
inner join (
Select
       JobID
      ,ListID
      ,BatchID
      ,SubscriberID as SubID
      ,SubscriberKey
      ,EventDate
From _Open
Where DATEDIFF(hh,  EventDate,GetDate())=24
             ) o
on
    o.JobID = s.JobID
and o.ListID = s.ListID
and o.BatchID = s.BatchID
and o.SubscriberKey = s.SubscriberKey

======================================================================
  • Query Activity for Click
======================================================================
Select  
       s.JobID
      ,s.ListID
      ,s.BatchID
      ,s.SubID
      ,s.SubscriberKey
      ,c.EventDate
      ,s.ViewLink
      ,s.EmailId
      ,s.EmailName
      ,s.memberid
      ,'Clicked' as InteractionEvent
      ,GetDate() as ModifiedDate
From
    SendLog s
inner join (
Select
       JobID
      ,ListID
      ,BatchID
      ,SubscriberID as SubID
      ,SubscriberKey
      ,EventDate
From _Click
Where DATEDIFF(hh,  EventDate,GetDate())=24
             ) c
on
    c.JobID = s.JobID
and c.ListID = s.ListID
and c.BatchID = s.BatchID
and c.SubscriberKey = s.SubscriberKey

======================================================================
  • Query Activity for Bounce
======================================================================

Select  
       s.JobID
      ,s.ListID
      ,s.BatchID
      ,s.SubID
      ,s.SubscriberKey
      ,b.EventDate
      ,s.ViewLink
      ,s.EmailId
      ,s.EmailName
      ,s.memberid
      ,'Bounced' as InteractionEvent
      ,GetDate() as ModifiedDate
From
    SendLog s
inner join (
Select
       JobID
      ,ListID
      ,BatchID
      ,SubscriberID as SubID
      ,SubscriberKey
      ,EventDate
From _Bounce
Where DATEDIFF(hh,  EventDate,GetDate())=24
             ) b
on
    b.JobID = s.JobID
and b.ListID = s.ListID
and b.BatchID = s.BatchID
and b.SubscriberKey = s.SubscriberKey

======================================================================
  • Query Activity for Unsubscribe
======================================================================

Select  
       s.JobID
      ,s.ListID
      ,s.BatchID
      ,s.SubID
      ,s.SubscriberKey
      ,u.EventDate
      ,s.ViewLink
      ,s.EmailId
      ,s.EmailName
      ,s.memberid
      ,'Unsubscribed' as InteractionEvent
      ,GetDate() as ModifiedDate
From
    SendLog s
inner join (
Select
       JobID
      ,ListID
      ,BatchID
      ,SubscriberID as SubID
      ,SubscriberKey
      ,EventDate
From _Unsubscribe
Where DATEDIFF(hh,  EventDate,GetDate())=24
             ) u
on
    u.JobID = s.JobID
and u.ListID = s.ListID
and u.BatchID = s.BatchID
and u.SubscriberKey = s.SubscriberKey

References :

Comments


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

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.