Adobe Analytics
Quick Start
// Adobe Analytics + Shoplift Integration
function initializeShopliftAdobe() {
if (window.shoplift && window.s) {
const visitorData = window.shoplift.getVisitorData();
if (visitorData.visitor && visitorData.visitorTests.length > 0) {
// Process each test assignment
visitorData.visitorTests.forEach((test, index) => {
// Set eVars (adjust numbers based on your configuration)
s.eVar60 = test.testId; // Test ID
s.eVar61 = test.hypothesisId; // Variant ID
s.eVar62 = test.isThemeTest ? 'theme' : 'element'; // Test type
// Set props for traffic variables
s.prop60 = visitorData.visitor.id; // Visitor ID
s.prop61 = visitorData.visitor.device; // Device type
// Set list variable for multiple tests
if (index === 0) {
s.list1 = `${test.testId}:${test.hypothesisId}`;
} else {
s.list1 += `,${test.testId}:${test.hypothesisId}`;
}
});
// Track test exposure event
s.events = s.apl(s.events, 'event60', ',', 1);
// Send the beacon
s.tl(true, 'o', 'Shoplift Test Exposure');
}
} else {
setTimeout(initializeShopliftAdobe, 100);
}
}
// Initialize on page load
initializeShopliftAdobe();Configuration Notes
eVar Setup
Event Setup
Processing Rules
Advanced Implementation
Track Purchase Attribution
Analysis in Adobe Workspace
Last updated
Was this helpful?