Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Adobe DTM - Purpose of pageBottom code

Avatar

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

Avatar

Correct answer by
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

3 Replies

Avatar

Correct answer by
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

Avatar

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

Avatar

Level 1

That's true @Pradeep_SV1  pageBottom() does something different compared to s.t(). When you call s.t() you send all the eVars to adobe analytics. When you call pageBottom() you just trigger the launch rules that depend on this PageBottom event. DOM Ready calls _satellite.pageBottom() only if the page bottom hasn't already been fired before, for example manually by you right before closing the </body> tag.