Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.
SOLVED

Data Layer - Custom conversion tracking

Avatar

Level 2

Hi, potentially very niche conversion tracking logic below:

We have a series of actions on our secure site which do not trigger a confirmation page on a uniquely identifiable URL. Instead, the visitor is taken back to the account overview page, and shown a 'Successful transaction' type message (within a div).

The confirmation message is the only evidence of the conversion, and appears only when a transaction is completed on the previous page. The div is removed from the HTML after a couple seconds (not just hidden, gone entirely).

Ideally we'd create an Mbox on this div, but my concern is that it is removed from the page. Clearly we can't add/change content in this case, but would a 'viewed mbox' conversion still trigger?

We currently capture the success metric via Google Tag Manager passing a success event in to the data layer. Is there any way that Target could capture this metric in a similar way? Could we, for example, pass a temporary parameter in to an existing mbox, and track views of it when the parameter is present? Could we still capture revenue amounts like this?

Happy to provide more details if this isn't clear.

Thanks in advance for any help!

Chris

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Yes you could use mboxDefine and mboxUpdate.  You might want to use some javascript to create a new <div> element to attach to your mboxDefine.

View solution in original post

3 Replies

Avatar

Employee Advisor

Hi Chris,

Not niche at all.  Hopefully you are already using the at.js library in which case you could use trackEvent for your order confirmation mbox.  You don't need to create an mbox on any div, just fire the javascript on the order event.  Yes, you can still capture revenue.  Here are some Help links.  The first one sounds like exactly what you need:

https://marketing.adobe.com/resources/help/en_US/target/ov/t_create_orderconfirm-page-mbox-atjs.html
https://marketing.adobe.com/resources/help/en_US/target/ov2/r_target-atjs-trackevent.html

Daniel

Avatar

Level 2

Thanks Daniel.

Not yet using at.js, but will be in the future. For now, would this be possible using mboxDefine() and mboxUpdate?

Chris

Avatar

Correct answer by
Employee Advisor

Yes you could use mboxDefine and mboxUpdate.  You might want to use some javascript to create a new <div> element to attach to your mboxDefine.