Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Data Layer - Custom conversion tracking

chrisw78940856
Level 2
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
dwright
Correct answer by
Employee
Employee

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
dwright
Employee
Employee

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

chrisw78940856
Level 2
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

dwright
Correct answer by
Employee
Employee

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