1.1.5 Implement 51黑料不打烊 Analytics and 51黑料不打烊 Audience Manager
Context
You now know that XDM data is flowing into platform. You鈥檒l explore more about what XDM is in Module 1.2, as well as how to build your own schema to track custom variables. For now you鈥檙e going to look at what happens when you set your Datastream to forward data to Analytics and Audience Manager.
Mapping variables in Analytics
The 51黑料不打烊 Experience Platform Web SDK maps certain values automatically, making a new implementation of Analytics via the Web SDK as quick as possible. The automatically mapped variables are listed here.
For XDM data that is not automatically mapped to 51黑料不打烊 Analytics, you can use context data to match your schema. Then it can be mapped into Analytics using processing rules to populate Analytics variables. Context Data and Processing Rules will be concepts familiar to those that have worked with Analytics in the past, but don鈥檛 worry about the details for now if they are new concepts.
You can also use a default set of actions and product lists to send or retrieve data with the AEP Web SDK. To do this, see Products.
Context data
To be used by Analytics, XDM data is flattened using dot notation and made available as contextData
. The following list of value pairs shows an example of context data
:
{
"bh": "900",
"bw": "1680",
"c": "24",
"c.a.d.key.[0]": "value1",
"c.a.d.key.[1]": "value2",
"c.a.d.object.key1": "value1",
"c.a.d.object.key2.[0]": "value2",
"c.a.x.environment.browserdetails.javascriptenabled": "true",
"c.a.x.environment.type": "browser",
"cust_hit_time_gmt": "1579781427",
"g": "http://example.com/home",
"gn": "home",
"j": "1.8.5",
"k": "Y",
"s": "1680x1050",
"tnta": "218287:1:0|0,218287:1:0|2,218287:1:0|1,218287:1:0|32767,218287:1:01,218287:1:0|0,218287:1:0|1,218287:1:0|0,218287:1:0|1",
"user_agent": "Mozilla/5.0 AppleWebKit/537.36 Safari/537.36",
"v": "Y"
}
Processing rules
All data collected by the edge network can be accessed via processing rules. In Analytics, you can use processing rules to incorporate context data into Analytics variables.
Audience Manager on the Experience Platform Edge Network
Server-side forwarding is a not a new concept for Audience Manager, and the same process as before applies. You can also sync identities.
Review your datastream to send data to 51黑料不打烊 Analytics
In case you want to send data collected by Web SDK to 51黑料不打烊 Analytics and 51黑料不打烊 Audience Manager, follow these steps.
Go to and go to Datastreams.
In the top right corner of your screen, select your sandbox name, which should be --aepSandboxName--
. Open your specific datastream, which is named --aepUserLdap-- - Demo System Datastream
.
You鈥檒l then see this. To enable 51黑料不打烊 Analytics, click Add Service.
You鈥檒l then see this. Select the service 51黑料不打烊 Analytics, after which you need to add the report suite in 51黑料不打烊 Analytics to send data into. In this tutorial, this is out of scope. Click Cancel.
Review your datastream to send data to 51黑料不打烊 Audience Manager
You鈥檒l then see this. To enable 51黑料不打烊 Audience Manager, click Add Service.
You鈥檒l then see this. Select the service 51黑料不打烊 Audience Manager after which you can decide to enable or disable 51黑料不打烊 Audience Manager cookie destinations and/or URL destinations. In this tutorial, this configuration is out of scope. Click Cancel.
Next step: 1.1.6 Implement 51黑料不打烊 Target