Skip to main content
Formatting + 1 tag.
Source Link
Zistoloen
  • 10.1k
  • 6
  • 36
  • 59

tracking Tracking universal analytics events through google tag managerGoogle Tag Manager

I have aan Universal Analytics property installed on my site through Google Tag Manager.

Following this articlethis article on tracking classic ga.jsga.js events through GTM I have given my tracker a global name _gua. Now I try to fire events using additional HTML tag as described in the article:

<script type="text/javascript"> 
$(function () { 
    $('.some-class').click(function () { 
        gua('send', 'event', 'button', 'click');
    }); 
});
</script>

The script is working fine but each time iI call the _gua to send the event I get the following message from the GA Debugger  :

Command ignored. Unknown target: undefined 

Is it even possible to use GTM and GUA this way? I don't want to use the data layer and GTM events...

tracking universal analytics events through google tag manager

I have a Universal Analytics property installed on my site through Google Tag Manager.

Following this article on tracking classic ga.js events through GTM I have given my tracker a global name _gua. Now I try to fire events using additional HTML tag as described in the article:

<script type="text/javascript"> 
$(function () { 
    $('.some-class').click(function () { 
        gua('send', 'event', 'button', 'click');
    }); 
});
</script>

The script is working fine but each time i call the _gua to send the event I get the following message from the GA Debugger  :

Command ignored. Unknown target: undefined 

Is it even possible to use GTM and GUA this way? I don't want to use the data layer and GTM events...

Tracking universal analytics events through Google Tag Manager

I have an Universal Analytics property installed on my site through Google Tag Manager.

Following this article on tracking classic ga.js events through GTM I have given my tracker a global name _gua. Now I try to fire events using additional HTML tag as described in the article:

<script type="text/javascript"> 
$(function () { 
    $('.some-class').click(function () { 
        gua('send', 'event', 'button', 'click');
    }); 
});
</script>

The script is working fine but each time I call the _gua to send the event I get the following message from the GA Debugger:

Command ignored. Unknown target: undefined 

Is it even possible to use GTM and GUA this way? I don't want to use the data layer and GTM events...

Source Link
Cubius
  • 141
  • 1
  • 5

tracking universal analytics events through google tag manager

I have a Universal Analytics property installed on my site through Google Tag Manager.

Following this article on tracking classic ga.js events through GTM I have given my tracker a global name _gua. Now I try to fire events using additional HTML tag as described in the article:

<script type="text/javascript"> 
$(function () { 
    $('.some-class').click(function () { 
        gua('send', 'event', 'button', 'click');
    }); 
});
</script>

The script is working fine but each time i call the _gua to send the event I get the following message from the GA Debugger :

Command ignored. Unknown target: undefined 

Is it even possible to use GTM and GUA this way? I don't want to use the data layer and GTM events...