Migrate utag.link on-page event from UA to GA4 (event fired using utag.link() directly on page )

Bronze Contributor
Bronze Contributor

@developers@Tealium - Some of our .aspx web pages are currently setup to fire utag.link events directly from the page for Google Analytics- UA tag. These events are working perfectly and fired based on the UA tag. Example below: 

$(document).ready(function() {
    $('#global-msg-title').on('click', function() {
        if (window.utag) {
            utag.link({ _ga_category: 'global_notification', _ga_action: 'viewed_messages', _ga_label: 'notification' });
        }
    });    
});

Now we would like to convert these existing onpage events to be setup amd migrated to GA4. What are the steps we need to follow, please advise ? 

1. Custom Event and the parameters are setup in GA4 Property. 

2. GA4 tag was setup in Tealium IQ.

3. on page implementation setup to fire the event in GA4 is not working. 

$(document).ready(function() {
    $('#global-msg-title').on('click', function() {
        if (window.utag) {
            utag.link({ tealium_event: 'global_notification', _ga4_param1: 'viewed_messages', _ga4_param2: 'notification' });
        }
    });    
});
SV
1 REPLY 1

Migrate utag.link on-page event from UA to GA4 (event fired using utag.link() directly on page )

Moderator
Moderator

Hi @SVaidyanathan 

In order for us to look into your request, it looks like we will need to see how your GA4 tag is setup.

If you reach out to our Customer Success Engineers by emailing support@tealium.com, they should be able to help you with this request.

Ask me anything Tealium!
Public