- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
03-08-2019 02:12 AM
I'm new to using tealium for GA implementation and just have a best practice question, which i think is fairly basic but I just want to make sure I get it right.
I want to implement a custom metric and the metric only fires on a specific page, the confirmation page.
My main Tealium GA tag has the load rule to fire on all pages on my domain but I don't want this metric to fire on all pages (it only exists on one page). How can I restric the metric to only fire on the intended page? Do I need to create a new Tealium GA tag for the page in question or is there a way I can restrict the metric in the existing tag?
03-12-2019 07:13 AM
There should only be one GA tag, and unless really required by your implementation(which in my estiamtion is pretty rare) the norm is to ave the load rule fire on all pages.
To control when the metric is sent to GA, you control when the variable feeding the metric in the tag is populated.
You can do this by using the conditions in the extentsion to only populate with the value your want when you want.
So if you put a condition to only populate when that page appears (you can use url, or any of the data object vars you specified in your data object implemenation, or to be frank any set of conditions thatt match the circumstance), that should acheive what you want.
03-13-2019 03:36 AM
Thanks for your reply, I really appreciate it.
Just to make sure I understood what you wrote, I need to make sure the data layer object only populates on the page(s) I need it to and that is the way I limit it from being set on the wrong pages?
03-18-2019 04:01 AM
Hi Frank Correct.
Whatever data layer object you have mapped in the tag, use an extention to popualte it and set theconditions as to when that should happen in theextention itself.
03-20-2019 03:47 AM
Agreed with Gavin, you should populate that variable only on the pages that you want it to fire, then only when the variable is populated the data will be sent back to GA through the tag.
Copyright All Rights Reserved © 2008-2023