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

SOLVED

Data capturing on Page Load rules

shreyasr2921505
Level 2
Level 2

Hi ,

 

I have a requirement where on page load i need to capture some  information , i have captured info for all fields , except 1 field , this data is not availlable on page load ,

since api takes some time to bring data from database , now once the page is loaded i can access this info , but by now variable is evaluated  and in DTM we have logged as NULL , how can this be achieved on Page load rule .

Can i make it to wait until i get api response ,

can i update the page load rules data later after page loads ,

currently my rule is executing at bottom of page and still  not capturing value , guess by then data from API is not there 

 

Thanks 

1 Accepted Solution
andrew_r-GrfLbX
Correct answer by
Level 7
Level 7

You either set the rule to trigger on DOM Load or a better way would be to have the script which is pulling the data from database to run _satellite.track call and set up a direct call rule in DTM then you can be sure the tag won't trigger until the data is loaded.

View solution in original post

1 Reply
andrew_r-GrfLbX
Correct answer by
Level 7
Level 7

You either set the rule to trigger on DOM Load or a better way would be to have the script which is pulling the data from database to run _satellite.track call and set up a direct call rule in DTM then you can be sure the tag won't trigger until the data is loaded.

View solution in original post