This may be a long shot but I'm looking for someone who has worked with the Tealium UDO (Universal Data Object). I have a search page with a Google Search Appliance, my utag_data
object in the data layer that looks like this:
这可能是一个很长的镜头,但是我正在寻找一个与Tealium UDO(通用数据对象)一起工作的人。我有一个带有谷歌搜索设备的搜索页面,数据层中的utag_data对象看起来是这样的:
var utag_data = {
"country":"US",
"language":"EN",
"search_keywords": "blahblah",
"search_results": "0"
}
The problem here is the search_results
property has not had enough time to wait for the real results number to load so it is defaulting to 0
instead of the real number 1200
. I've read Tealium's documentation around the utag.view()
and utag.link()
and want to use one of these to update the search_results
tag. I tried:
这里的问题是search_results属性没有足够的时间等待真正的结果号加载,所以它默认为0而不是真实的1200。我在utag.view()和utag.link()周围阅读了Tealium的文档,并希望使用其中的一个来更新search_results标记。我试着:
utag.link({'search_results':'1200'});
and
和
utag.view(utag_data,null,[12]);
where 12 is the UID of the tag in Tealium but when using Omnibug in firefox I'm not seeing any updated values, but it is sending the click event to AT Internet.
在Tealium中,12是标签的UID,但是在firefox中使用Omnibug时,我没有看到任何更新的值,但它将单击事件发送到Internet。
Does anyone have any experience with this? Thank you in advance
有人有这方面的经验吗?提前谢谢你
1 个解决方案
#1
6
You can either wait to call the main utag.js
Tealium script, or send along another data point using utag.link
or utag.view
. It is not possible to "update" the initial utag_data
object once sent.
您可以等待调用main utag。js Tealium脚本,或使用utag发送另一个数据点。链接或utag.view。不可能“更新”曾经发送的初始utag_data对象。
These methods are used to handle sending dynamic events/data. See additional discussion on the Tealium blog at ajax tracking.. when urls no longer change
这些方法用于处理发送动态事件/数据。请参阅ajax跟踪的Tealium博客上的其他讨论。当url不再改变时
From utag.link() and utag.view() on Tealium Learning
来自utag.link()和utag.view()关于茶道学习的文章
Syntax
语法
The link and view methods allow you to pass three different parameters:
链接和视图方法允许您传递三个不同的参数:
-
parameter 1: a JSON object
参数1:一个JSON对象。
utag.view({'search_results':'1200'});
utag.view({‘search_results’:‘1200’});
-
parameter 2: a callback function (optional, may be set to
null
)参数2:一个回调函数(可选,可以设置为null)
-
parameter 3: an array of Tags (optional: if used, these are the only Tags that will fire)
参数3:一个标签数组(可选:如果使用,这些是唯一会触发的标签)
utag.link( {'search_results':'1200'}, function(){alert("Only fired tag 12 with this call");}, [12] );
utag。链接({'search_results':'1200'},函数()
Notes:
注:
- The utag_data object declared on initial page landing is not re-purposed with these calls. If data from the initial page landing needs to be used it will need to be re-declared and passed again in the method call. For example, if language:"en" was passed on page landing, if language is needed for a tag fired by a utag method call then language will need to be passed again.
- 在初始页面着陆时声明的utag_data对象没有使用这些调用重新定位。如果需要使用来自初始页面着陆的数据,则需要重新声明数据,并在方法调用中再次传递数据。例如,如果在页面着陆时传递了语言:“en”,如果utag方法调用触发的标记需要语言,则需要再次传递语言。
- utag.view() calls should not be called on initial page load - they should only exist in the dynamic content loaded within the page.
- 不应该在初始页面加载时调用utag.view()调用——它们应该只存在于页面中加载的动态内容中。
- Global and Tag-scoped Extensions are executed during these calls. Pre-loader and DOM Ready extensions will not executed during these calls.
- 在这些调用期间执行全局扩展和标记范围扩展。预加载器和DOM准备扩展不会在这些调用期间执行。
#1
6
You can either wait to call the main utag.js
Tealium script, or send along another data point using utag.link
or utag.view
. It is not possible to "update" the initial utag_data
object once sent.
您可以等待调用main utag。js Tealium脚本,或使用utag发送另一个数据点。链接或utag.view。不可能“更新”曾经发送的初始utag_data对象。
These methods are used to handle sending dynamic events/data. See additional discussion on the Tealium blog at ajax tracking.. when urls no longer change
这些方法用于处理发送动态事件/数据。请参阅ajax跟踪的Tealium博客上的其他讨论。当url不再改变时
From utag.link() and utag.view() on Tealium Learning
来自utag.link()和utag.view()关于茶道学习的文章
Syntax
语法
The link and view methods allow you to pass three different parameters:
链接和视图方法允许您传递三个不同的参数:
-
parameter 1: a JSON object
参数1:一个JSON对象。
utag.view({'search_results':'1200'});
utag.view({‘search_results’:‘1200’});
-
parameter 2: a callback function (optional, may be set to
null
)参数2:一个回调函数(可选,可以设置为null)
-
parameter 3: an array of Tags (optional: if used, these are the only Tags that will fire)
参数3:一个标签数组(可选:如果使用,这些是唯一会触发的标签)
utag.link( {'search_results':'1200'}, function(){alert("Only fired tag 12 with this call");}, [12] );
utag。链接({'search_results':'1200'},函数()
Notes:
注:
- The utag_data object declared on initial page landing is not re-purposed with these calls. If data from the initial page landing needs to be used it will need to be re-declared and passed again in the method call. For example, if language:"en" was passed on page landing, if language is needed for a tag fired by a utag method call then language will need to be passed again.
- 在初始页面着陆时声明的utag_data对象没有使用这些调用重新定位。如果需要使用来自初始页面着陆的数据,则需要重新声明数据,并在方法调用中再次传递数据。例如,如果在页面着陆时传递了语言:“en”,如果utag方法调用触发的标记需要语言,则需要再次传递语言。
- utag.view() calls should not be called on initial page load - they should only exist in the dynamic content loaded within the page.
- 不应该在初始页面加载时调用utag.view()调用——它们应该只存在于页面中加载的动态内容中。
- Global and Tag-scoped Extensions are executed during these calls. Pre-loader and DOM Ready extensions will not executed during these calls.
- 在这些调用期间执行全局扩展和标记范围扩展。预加载器和DOM准备扩展不会在这些调用期间执行。