Skip to main content
Level 2
Oct 13, 2023 9:32 PM UTC

ttMETA Object Undefined on page reload

We have a situation where when we reload a page, the ttMETA object is undefined. Why would this happen? If I check the network calls, I get the same thing whether undefined or not.

Any ideas why this would happen?

 

Thanks,

MJ

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Gokul_Agiwal
Community Advisor
Community Advisor
Oct 16, 2023 10:29 PM UTC

Hi @m_e_j - What's the first response when the page is getting loaded in browser, before reload? Are you able to see anything in 

window.ttMETA

 

Translate
Thanks, Gokul
M_E_JAuthor
Level 2
Oct 16, 2023 11:07 PM UTC

Hi,

I get the "ttMETA" object but it is empty. The weird thing is we have a rule that creates it and when debug mode is on, it shows the rule as firing every time, even when the object shows undefined in the console. 

 

The code at the top of the rule:

 

document.addEventListener(adobe.target.event.REQUEST_SUCCEEDED, function (e) { window.ttMETA= typeof(window.ttMETA)!="undefined" ? window.ttMETA : [];

 

Another bizarre thing is I can't reproduce the issue when injecting the dev. library. I can only reproduce in production. Here is the URL if you're interested?

 

https://wealth.bmo.com/wealth/onboard/onlineinvesting/#/set-expectation?lang=en

 

You may have to reload a few times to see issue? 

Thanks,

MJ

Translate
Gokul_Agiwal
Community Advisor
Community Advisor
Oct 17, 2023 9:28 PM UTC

Hi @m_e_j 

Thank you, I did check the page. QQ - Is any activity live on the page? I can't see anything to be loaded from Target.  

Translate
Thanks, Gokul