Adobe DTM - Purpose of pageBottom code | Community
Skip to main content
Roman_Gazarek
Level 3
March 2, 2017
Solved

Adobe DTM - Purpose of pageBottom code

  • March 2, 2017
  • 2 replies
  • 9330 views

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!

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,

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

2 replies

ParitMittal
ParitMittalAccepted solution
Level 10
March 3, 2017

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

August 13, 2018

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

August 16, 2022

That's true @pradeepve  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.