- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Hi all,
we are facing an obstacle in capturing variable as a custom metric in Tealium. Basically, we have a timer extension for interval of 5 seconds lasting for 90 seconds and it fires correctly. We want to capture time spent on a page as a custom metric (5, 10, 15, 20 seconds etc.). Given that, we created an UDO variable called "timer" and we capture that information there when we tried in Console.
Then we created another UDO variable "timer_metric" and used set data extension to set this variable from variable "timer". The variable "timer_metric" we mapped to custom metric but it does not work and custom metric is not being sent.
Any help is much appreciated.
Thank you,
Lukas
Hi Lukas,
I'm not so great at the technical stuff but could the problem be that the value (5, 10, 15, ...) is generated after your datalayer is loaded. So whenever you enter the page, the value in your datalayer will always be 0.
It might work using the utag.link()/utag.view() functions, but be aware that it might be tricky.
cheers,
Devid
Hi David,
thank you for your idea.
Actually, we use the custom javascript extension for the timer and in that function we also define a new UDO variable. We use utag.link() for that. It works to define the UDO variable. The problem is that even if the variable is mapped to custom metric in our GA tag it simly does not fire. When we look on the developer console, the variable is populated according how much tome passed but information is not being sent as custom metric.
Cheers,
Lukas
Any event in GA requires 'event action' and 'event category' to be sent on the utag.link call. This can be easily overlooked when first setting up events to fire GA.
This is a GA requirement, if you do not provide those two variables on the event ( with any other variable you want to pass) The GA library will not fire the pixel for the event.
12-01-2016 07:40 AM - last edited on 12-01-2016 09:48 AM by kathleen_jo
Copyright All Rights Reserved © 2008-2023