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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

js code not executing before page load in AT.js

HariharanSubra1
Level 3
Level 3

Hi All,

I create a campaign in adobe target which needs to be set some window varaiable value before page load. It was working fine in mbox js. now my production site is migrated from Mbox.js to At.js.  After At.js its not executing before page load. is there any way to do that?.

Thanks,

Hariharan S

6 Replies
Rami_Hammad
Employee
Employee

HariharanSubramanian_21

After Migrating from mbox.js to at.js, have you ensured that you have Global auto-create mbox enabled?

How at.js Works

HariharanSubra1
Level 3
Level 3

How can i check the Global auto-create mbox enabled or not?

Rami_Hammad
Employee
Employee

HariharanSubramanian_21

In Target, go to Setup -> Implementation then edit at.js settings.

Ensure Auto Create is enabled, then load this library via DTM.

HariharanSubra1
Level 3
Level 3

Hi RamH​,

Auto create mbox option is already enabled.... Still its not working

Rami_Hammad
Employee
Employee

If you are using DTM ensure that _satellite is firing in the <head> section of the page.

Also, if this was an activity created when using mbox.js, it may need to be updated to work with at.js, as per: Migrate to at.js from mbox.js

Append the URL with mboxDebug=console and confirm that all AT actions are rendering successfully

HariharanSubra1
Level 3
Level 3

Hi RamH​,

I checked with 'mboxDebug=console' parameter. In console I can see all the AT.js  methods are triggering. But still VEC header customized code executing after the page load only.

Thanks,

Hariharan S