In this last section, let's try to send additional profile data with Analytics and Triggers, which we can use to query the Dynamics CRM before sending campaign messages.
First, navigate to your DTM property.
- Go to the
Overview
page for your property, clickAdd a Tool
, and addMarketing Cloud ID Service
.- Put in the Org ID (can be found in Workshop info) for
Experience Cloud organization ID
- Use
d1.sc.omtrdc.net
as your Analytics Tracking Server
- Put in the Org ID (can be found in Workshop info) for
- Approve and Publish your changes.
Now, if you go back to your AEM web page and hit refresh, you should begin to see the MC ID populated. Note: it may show up as AMC Visitor ID
or Experience Cloud Visitor ID
based on the tool you use.
Let's add a another tool to DTM to help pick up additional Analytics data on the page that we can use as enrichment for the Triggers payload.
- Go to the
Overview
page for your property, clickAdd a Tool
, and addAEM ContextHub
. - Go to
Rules
, click onData Elements
and create a new Data Element that is of typeContextHub
, and captures the Objectprofile.displayName
. - Go back to the setting for your Analytics tool setting, under
Global Variables
add a prop that uses the Data Element you just created. - Approve and publish your changes.
Assuming you have this prop enabled for your Report Suite (if not, you can do it in the Analytics interface), if you go back to your AEM web page and hit refresh, you should begin to see the name of the Context Hub user populated for the prop.
Now that more Analytics data are available, let's edit the Triggers payload to include these additional metrics as enrichments.
- On the Triggers UI, select your Trigger, click
Edit
. - On the Triggers Settings page, for Include Meta Data, add Marketing Cloud ID and the prop/eVar you just added in DTM
- Save your changes and now you should see your Triggers definition displayed.
- Use the Triggers API to shorten your Triggers wait time
Time to test your Trigger again! See if the new Trigger includes all the enrichment data you just added.
In the last step, we used Adobe ContextHub to pick up profile data. Can you figure out how to add the cart items to your Triggers enrichment data?
Keep in mind that any Analytics metric you can pick up can be added to Triggers as an enrichment. You can either pass in raw data and do the calculation/processing in your Runtime action upon receiving those data, or use JavaScript to only pass in "calculated/formatted" results.
Let's try a few queries with the Dynamics API.
- Launch Postman, and upload the Dynamics Postman collection you downloaded.
- Before making the calls, you'd need to set up an environment in Postman for this API collection, and put in the following key/value. You can find the cooresponding values in the Workshop Credentials section on top.
access_token
-> Dynamics CRM access token
There are a few sample calls in this collection. Play with them and see if you can build your own queries.
Reference for Dynamics 365 Web API: https://msdn.microsoft.com/en-us/library/mt607901.aspx
Using the provided access token for Dynamics, can you build a Runtime action that queries Campaign based on a given email address or name?
I've provided a log in for the Dynamics CRM Instance that we are using in the Workshop info table. Please feel free to use this to add your own profiles into this instance. If you are interested in working with Dynamics in the future, you can get a demo version from Microsoft.
Now you have all the tools you need to build a customized solution end to end. How would you incorporate Dynamics or any CRM into this process.
Ideally, you would use MC ID to match visitor data in Adobe Analytics with external CRM systems. Assuming you do have that data in your CRM. What can you do with a CRM to help personalized remarketing? Here are a few simple idea to get you started:
- Use the email address and personal preferences stored in CRM to send personalized Campaign message
- Based on the value of the customer marked in the CRM, remarket the customer in different workflows
- Store the products that the customer is interested in the CRM
**Back: ** Chapter 4 - Orchestrate Trigger to Campaign in Runtime