For example, client is firing GA events and we aren't sure they can always follow a lowercase value policy, therefore we want to create a backup method of ensuring that all event category, action and label values are lowercased prior to being sent to GA. The client is firing utag.link() and we aren't sure where we can intercept what they send, lowercase it and then pass to GA, without of course modifying the GA template ( which is our last resort method ).
Like many things in Tealium iQ, this can be accomplished in more than one way and depends slightly on your implementation. However I am going to try to set you up so that you have all the tools you need to be able to figure out what will work in your environment.
First you need to know what is mapping from the utag.link call to the event, category and action in the Tealium template for Google Analytics. In TiQ, click on the Tags tab and then expand the Google Analytics Tag to view the mappings. It will be something like event_category -> eventCategory meaning the value in the utag.link key called event_cateogry will become the value in the key eventCategory which will eventually become the ec in the outbound querystring parameters for the Google Collect Pixel.
Now you can use a Set Data Value extension to lowercase each of the values. Lets keep with the example event_category. In your Set Data Value extension, you will want to set event_category to the JS Code b['event_category'].toLowerCase(); and create a condition for the extension that will only run when event_category is populated. Do this for each of the items you want to lowercase and you are all set. I will add one more comment that has a screenshot of the Set Data Value.
Please let us know if this takes care of your question or if you need more direction. As always, feel free to reach out to your Account Manager if you want an engineer to look at your specific case.
You could also use the lower casing extension in the extensions tab scoped to your Google Anaytics tag if you'd like to lower case all values going to GA, which should catch any that come from utag.link() as well. Scoping this extension to All Tags would work too, which would lower case all values for all tags.
Thanks, I thought about sending this as the answer, but thought it would lowercase everything. Didn't realize you could scope that extension to a specific tag!
Olaf, go with Gilbert's response.
Thank you Gilbert, my hunch was right I just couldn't find anything to verify that it would affect the variables set for the tag -
Thanks Brian too! you introduced an valuable option because in some cases we may not want things lowercased ( since historically they've been cased and the method of implementation has been solid ). Aside from this, there are other things we can do to specific variables ( such as append/prepend, filter for "//" ) with your method so thank you!
Olaf Calderon Director, Implementation
Blast Analytics & Marketing
San Francisco, Rocklin, Seattle, LA, New York, Chicago, Boston, London HQ: (916) 724-6701 | direct: (916) 724-6717 www.blastam.com | facebook.com/blastam | @blastam | news | blog