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

Adobe DTM - Purpose of pageBottom code

Roman_Gazarek
Level 4
Level 4

Hi everyone,

What's the purpose of firing _satellite.pageBottom() code right before closing </body> tag? I debugged the satellite library and found out that it's fired automatically just before DOMReady event.

D.domReady(function () {D.domReadyFired = !0, D.pageBottomFired || D.pageBottom(), D.firePageLoadEvent("domready") })

Can someone clarify why the code is so important?

Thank you!

1 Accepted Solution
ParitMittal
Correct answer by
Level 10
Level 10

Hi,

The footer code i.e. _satellite.pageBottom()   is responsible for identifying the end of the page for timing control Hence fired just before DOM ready event.  This code snippet should be placed in the body section of the site code as close to the closing tag as possible.

_satellite.pageBottom() is what compiles all the variables defined on that page into an image request and sends it to Analytics servers . If you are familiar with legacy Adobe Analytics implementation , _satellite.pageBottom() serves same purpose as s.t() call.

Thanks & Regards

Parit Mittal

View solution in original post

2 Replies
ParitMittal
Correct answer by
Level 10
Level 10

Hi,

The footer code i.e. _satellite.pageBottom()   is responsible for identifying the end of the page for timing control Hence fired just before DOM ready event.  This code snippet should be placed in the body section of the site code as close to the closing tag as possible.

_satellite.pageBottom() is what compiles all the variables defined on that page into an image request and sends it to Analytics servers . If you are familiar with legacy Adobe Analytics implementation , _satellite.pageBottom() serves same purpose as s.t() call.

Thanks & Regards

Parit Mittal

View solution in original post

Pradeep_SV1
Level 1
Level 1

With what I see, if we choose the option load library on top of the page even if i do not place the _satellite.pageBottom() - beacons still fires just fine.  I am skeptical _satellite.pageBottom() does same as s.t()

let me know your thoughts.

regards,

Pradeep SV