Hi, I am using adobeDataLayer and pushing events to it. However, I noticed that as I move across the pages, events are being passed multiple times along with other page details when pushing data into adobeDataLayer. This becomes a problem that it's hard to locate the events, is this normal behavior? If not, what should I do to solve this issue?
Any insights would be greatly appreciated!
解決済! 解決策の投稿を見る。
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
So I guessed your site is a SPA such that the same window.adobeDataLayer being used for multiple "pages", as the Adobe extension does not carry adobeDataLayer forward from page to page by itself.
For SPA and when the adobeDataLayer is growing too long, you can use the reset data layer action to compute and merge all items in the data layer into one.
So I guessed your site is a SPA such that the same window.adobeDataLayer being used for multiple "pages", as the Adobe extension does not carry adobeDataLayer forward from page to page by itself.
For SPA and when the adobeDataLayer is growing too long, you can use the reset data layer action to compute and merge all items in the data layer into one.
Hi Leo, thanks for helping! I have tried to use the reset data layer action, but after that I cannot get any data from adobeDataLayer.
表示
返信
いいね!の合計
I just performed a test on the reset action and it works as expected. In your case the disappearing of the adobeDataLayer, you need to check if there are any other codes in Launch, or if your website manipulated the adobeDataLayer and accidentally deleted it.
Thanks Leo!
表示
返信
いいね!の合計
Don't inspect the adobeDataLayer array directly. Instead, log adobeDataLayer.getState() to see the latest, computed state of the data layer when each event occurs.
Thanks Yuhui!
表示
返信
いいね!の合計
Hi @YZ_J , I am also having the same issue, can you help to share the solution that worked for you.
表示
返信
いいね!の合計