Michael Johns
Michael Johns

Reputation: 441

JS Error for Existing Method Check for Adobe DTM?

We have been using this code to load the Adobe DTM "pageBottom" method for approx 3 yrs. without issue:

    (function () {
        function w() {
            window._satellite ? _satellite.pageBottom() : setTimeout(w, 100)
        }
        setTimeout(w, 300)
    })()

It is a function at the bottom of our bootstrap loader file. For some reason, within the past few months, it has been throwing an error of Uncaught Type Error: _satellite.pageBottom() is not a function at w (wrapper.min.js:[line number]. I have no idea why? The method exists. If you want to see this in action, go to www.bankofthewest.com. I was wondering how I should approach this?

Upvotes: 2

Views: 1343

Answers (1)

Jenn
Jenn

Reputation: 410

Hm, I'm not sure if this even IS "unsupported"- I've certainly seen plenty of folks do a check to make sure _satellite exists to prevent errors when running _satellite.pageBottom, though the timeout does complicate that a little. It's hard to tell what's going on because your DTM library isn't served up a standard way, but I DO see this in the console: "Error, missing Report Suite ID in AppMeasurement initialization". I'd check a couple things: 1) If you inactivate your Adobe Analytics tool (JUST IN STAGING- this is just an experiment to isolate your variables), does that pageBottom error go away? If so, then it's not actually a pageBottom error, it's caused by some of your Adobe Analytics tool set up 2) Double check that you ARE setting your report suite ID in your Adobe Analytics tool setup. Hope that helps!

Upvotes: 2

Related Questions