Add subscriber ID as a UTM to the links in your Salesforce Marketing Cloud emails and share email addresses and subscriber IDs with Attentive. This helps us better identify your email subscribers when they browse your site. By completing the steps in this article, you can increase your text and email message journey volume and revenue.
Add subscriber ID to Salesforce Marketing Cloud email links
To add subscriber ID as a UTM parameter to Salesforce Marketing Cloud links that appear in emails, complete the following steps in Salesforce Marketing Cloud:
- In Salesforce Marketing Cloud, go to Setup > Data Management > Parameter Management.
- Expand Web Analytics Connector.
- Click Edit.
- Add the following UTM parameter to the end of your Brand Tag (emailXtraLinkParameters) Tracking String:
&sfmc_id=%%subscriberid%%
. - Click Save.
- Sign up for emails on your website and verify that you can see an actual
sfmc_id
when you click a link in an email. - Follow the steps in the sections below to export email addresses and subscriber IDs from Salesforce Marketing Cloud.
Export subscriber email addresses and IDs from Salesforce Marketing Cloud
After you add subscriber ID as a UTM parameter to Salesforce Marketing Cloud links that appear in emails, complete the following steps to export subscriber email addresses as a CSV.
Create a new data extension
Create a new data extension that includes subscriber email addresses and subscriber IDs:
- In Salesforce Marketing Cloud, go to Email Studio > Email > Subscribers > Data Extensions.
- Click Create.
- Select Standard Data Extension, then click OK.
- Complete the fields to create the new data extension. We recommend using
Export Subscriber ID
as the new data extension’s Name. - In Fields (step 3), add two fields:
- Email address
-
Name:
emailAddress
-
Data type:
EmailAddress
-
Name:
- Subscriber ID
-
Name:
subscriberID
-
Data type:
Number
Note: Be sure to exportsubscriberID
, notsubscriberKey
.
-
Name:
- Email address
- Click Create.
Create a new automation
Create a new automation to query for active subscriber IDs:
- Go to Journey Builder > Automation Studio.
- Click New Automation.
- Add Schedule as the Starting Source and SQL Query as the Activity.
- Click Choose in the SQL Query panel.
- Click Create New Query Activity.
- In the Properties step (step 1), enter
Export Subscriber ID
as the new activity’s Name, then click Next. - In the Query step (step 2), enter the SQL query below, then click Next:
SELECT EmailAddress, SubscriberID FROM _subscribers WHERE status = 'Active'
Note: If you’re querying a Child Business Unit in Salesforce, use the query below:SELECT EmailAddress, SubscriberID FROM ent._subscribers WHERE status = 'Active'
- In the Target data extension step (step 3), search for and select Subscriber ID Export. In the Data Action section, select Overwrite, then click Next.
- Click Finish to save the query activity.
- Click Save to save the new automation.
Run the export subscriber ID automation
Run the automation you created in the previous section:
- In Salesforce Automation Studio, search for and select
Export Subscriber ID
. - Click Run Once.
- Check the box in the Export Subscriber ID panel, then click Run.
- Click Run Now.
- Click the Activity tab to verify that the automation is running.
Download CSV of subscriber email addresses and subscriber IDs
Download the CSV of active subscriber email addresses and IDs generated by the automation you created and ran in the previous sections.
- When the automation finishes running, go to Salesforce Marketing Cloud > Email Studio > Email > Subscribers > Data Extensions.
- Search for
Subscriber ID
. - Click Records.
- Click Export.
- In Filename, enter your company’s name.
Example:your_company.csv
- In Notification email address, enter your email address.
- Click Export.
Send CSV to Attentive
After you successfully export a CSV containing subscriber email addresses and IDs, send the CSV to your Attentive CSM via the Box link they provided to you via email. By sharing the data in this CSV with Attentive, we can identify website traffic from emails sent through Salesforce Marketing Cloud and associate that traffic with subscribers in Attentive.