Caveats
Requires JavaScript knowledge.
The execution order of profile scripts cannot be guaranteed, so they cannot rely on each other.
Can be difficult to debug.
Code examples
Profile scripts are quite flexible:
user.purchase_recency: var dayInMillis = 3600 * 24 * 1000; if (mbox.name == 'orderThankyouPage') { user.setLocal('lastPurchaseTime', new Date().getTime()); } var lastPurchaseTime = user.getLocal('lastPurchaseTime'); if (lastPurchaseTime) { return ((new Date()).getTime()-lastPurchaseTime)/dayInMillis; }
Links to relevant information
Previous pageIn-page profile attributes
Next pageData providers
Personalization & Experiementation Excellence with Recommendations and AI
Adobe Customer Success Webinars
Tuesday, Mar 4, 4:00 PM UTC
Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.
RegisterAdobe Target at Summit
Register for these developer sessions:
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- A Tax Transformation: How H&R Block and Adobe MarTech Improved Engagement
- Transforming D2C: How CASIO Delivers Immersive, Personalized Web Experiences
- Implement Adobe Target for Optimal Performance (hands-on lab)
- How Air India’s Digital Transformation Is Driving Business Turnaround
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more