You can analyze the performance data of campaigns created in Dynamic Yield using mParticle reports. This enables you to filter sessions/users who viewed a specific campaign, experience, or variation, in your mParticle reports.
Enable the mParticle Integration
- Go to Settings › Integrations.
- Click the Custom Analytics Platforms and click Enable Integration.
- Check Variation Impressions.
- Paste the following code and click Save.
function afterVariationSelected(tagId, tagName, experienceName, experience, variations, isNoAction) { DYO.CoreUtils.waitForVariable('window.mParticle', 50).then( function() { mParticle.logEvent(tagName, mParticle.EventType.UserPreference, {'tagId': tagId, 'experience': experience, 'isNoAction': isNoAction}, {'Google.Category': 'DY Smart Action', 'Google.Label': experienceName + ' (' + variations + ')'}) }) }
- For every campaign that you want to send information to mParticle, click the Enable custom integration option in the advanced settings (enabled by default).