Please advise on how to push to GTM dataLayer the value below step by step (I'm not a developer).
请告知如何逐步推送GTM dataLayer值(我不是开发人员)。
document.getElementById("mytdId").innerText
Thanks a lot.
非常感谢。
1 个解决方案
#1
0
ok i found a way around which works , here the snippet :
好吧,我发现了一个有效的方法,这里的代码片段:
Hi
function (){
var topMenu = document.getElementById("dm1m0i1tdT").innerText;
return(topMenu);
}
To improve the syntax you suggest an array but don't know how to handle that in this case here. Any suggestion ?
要改进语法,你建议一个数组,但在这种情况下不知道如何处理它。有什么建议吗?
#1
0
ok i found a way around which works , here the snippet :
好吧,我发现了一个有效的方法,这里的代码片段:
Hi
function (){
var topMenu = document.getElementById("dm1m0i1tdT").innerText;
return(topMenu);
}
To improve the syntax you suggest an array but don't know how to handle that in this case here. Any suggestion ?
要改进语法,你建议一个数组,但在这种情况下不知道如何处理它。有什么建议吗?