- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
01-20-2020 05:48 AM
Hi,
We are trying to add an CustomTask in Tealium GA Tag implementation. But as we are using GA Tag for Google Analytics tracking, and 'ga' object is no more accissible (as overwritten by utag), we are not able to add this customtask in our implementation.
I have found a similar thread, https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/customTask-for-Google-Universal-Analyti...
In the above thread, the possible solution suggested is to modify the GA Template and update the implementation.
The impact of above suggested approach has an overall impact on the Existing Analyitcs implementation.
Please let us know, how we can add CustomTask in GA Tag.
Thanks in Advance.
02-13-2020 06:11 PM
Hi @kasimbohra
Using a Javascript code extension reference the gtag object. Eg:
gtag('set', 'customTask', function(model) {
console.log(model.get('hitPayload'));
});
Hope that helps
02-10-2022 02:56 PM
Copyright All Rights Reserved © 2008-2023