Example
<a href="https://asite.com">click me!</a>
plus javaScript code to assign trackEvent
:
<script>
$('a').click(function(event){
adobe.target.trackEvent({'mbox':'homePageHero'})
});
</script>
Or:
adobe.target.trackEvent({
"mbox": "clicked-cta",
"params": {
"param1": "value1"
}
});
If the mandatory fields are not set, no request is executed, and an error is thrown.
Previous pageadobe.target.triggerView() - at.js 2.x
Next pagemboxCreate() - at.js 1.x
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)
- Building Personalized Connections at Scale: T-Mobile’s Adobe Journey
- How to Scale and Transform Your Organization to Omnichannel Communications
- Had Me at First Click: Activate Your Audience with AI Content Discovery
- AI-Powered Personalization: Prudential's Secret to a 135% Engagement Boost
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more