How to log template and subscriber data in your SFMC Send Log
Most email teams only track standard metrics like opens and clicks. But the real insights come when you combine those results with context.
In this guide, you’ll learn how to capture any data from your email, like template variables or customer attributes, and store it in your Send Log in Salesforce Marketing Cloud.
Once this data is available in your Send Log, it will automatically become available in SEINō, so you can use it in your dashboards, comparisons and analyses without any extra work.
This allows you to enrich your reporting and better understand what’s driving your campaign performance.
📊 Example use-case: Log Webversion, Subject Line & Language in Send Log
What we’re capturing
We want to store:
- Webversion link
- Subject line
- Customer field:
Language
Step 1 — Create fields in your Send Log Data Extension
Add these fields:
WebversionURL (Text)
SubjectLine (Text)
Language (Text)
Step 2 — Add this AMPscript to your email
Place this at the top of your email:
%%[
/* Webversion link */
SET @WebversionURL = ViewEmailURL()
/* Subject line */
SET @SubjectLine = AttributeValue("_emailSubject")
/* Customer language field */
SET @Language = AttributeValue("Language")
]%%
Step 3 — Make sure names match exactly
AMPscript variable | Send Log field |
|---|---|
| |
| |
| |
What gets stored
At send time, your Send Log will contain:
WebversionURL = https://view.email.sfmc.com/?qs=...
SubjectLine = Summer Sale - 20% off
Language = EN
Important notes
1. Subject line works only if:
- You set it in the email (or send definition)
_emailSubjectis available (usually is)
If not working, fallback:
SET @SubjectLine = "Fallback subject here"
2. Language must exist in your data
This must be a field in:
- Sendable Data Extension
or
- Contact Builder attribute
3. Webversion link
ViewEmailURL() always generates the correct per-recipient URL.
💡 SEINō tip
If you log these fields, you can:
- Compare subject lines across campaigns
- Analyze performance by language
- See previews of your emails
✅ Done
That’s it.
If the field exists + AMPscript variable matches → it will be logged automatically.
Updated on: 16/04/2026
