at.js iplementation | Community
Skip to main content
mattf96384379
Level 2
November 22, 2016
Solved

at.js iplementation

  • November 22, 2016
  • 4 replies
  • 2362 views

Hi, can anyone offer advice on using at.js vs. mbox.js when upgrading to Target Premium? I understand at.js is necessary for single page apps, but there is only the option to use mbox.js when using 'Managed by Adobe'. If I download the at.js file and implement through the custom code editor it doesn't seem to work (new mbox.js does btw).

 

Any help would be greatly appreciated!

 

Thanks

Matt

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParitMittal

Hi Matt,

At.js is correctly loading on the webpage in the head part of the HTML and the same has been verified

[img]target_at1.png[/img]

Also, Through the Network tab of the browser console we can verfiy that "Target-Global-mbox" call  being fired.

Please note that All mbox calls with at.js use XHR requests, which are not exposed by MC debugger. Instead, use your browser's Developer Tools to inspect the Network requests, filtering to "mbox" to isolate mbox calls.

Please see the following link for information on debugging at.js :

https://marketing.adobe.com/resources/help/en_US/target/ov2/c_target-debugging-atjs.html

Thanks & Regards

Parit Mittal

4 replies

ParitMittal
Level 10
November 23, 2016

Hi Matt,

Can you Please share your DTM  account Login details as well as Test URL of the website in a private message  so that we can debug the issue at our end.

Thanks & Regards

Parit Mittal

mattf96384379
Level 2
November 23, 2016

Hi Parit, will do thanks. Before I waste any of your time though, can you confirm if I need to use at.js for single page apps or will mbox.js suffice?

ParitMittal
ParitMittalAccepted solution
Level 10
November 24, 2016

Hi Matt,

At.js is correctly loading on the webpage in the head part of the HTML and the same has been verified

[img]target_at1.png[/img]

Also, Through the Network tab of the browser console we can verfiy that "Target-Global-mbox" call  being fired.

Please note that All mbox calls with at.js use XHR requests, which are not exposed by MC debugger. Instead, use your browser's Developer Tools to inspect the Network requests, filtering to "mbox" to isolate mbox calls.

Please see the following link for information on debugging at.js :

https://marketing.adobe.com/resources/help/en_US/target/ov2/c_target-debugging-atjs.html

Thanks & Regards

Parit Mittal

mattf96384379
Level 2
November 24, 2016

Thanks so much Parit!

 

So it's all working ok?! Wonderful!

 

One last question, on other sites I have 'on-page' legacy mboxes (see attached). Can I still use these with at.js? I know I can with mbox.js (fired through DTM), but I think I recall reading somewhere that at.js isn't compatible with 'mboxcreate'...?

Will send you my Target log in....

 

Thanks!

Matt