Iam using google tag manager it's going very well with click events but when I tried to use datalayer it's not working here is my datalayer
<script>
$('.tag').click(function(event){
dataLayer.push({
'event':'myNewTransaction',
'eventCategory': 'App', //create a datalayer variable macro called eventCategory
'eventAction': 'Click', //create a datalayer variable macro called eventAction
'eventLabel': 'iOS' //create a datalayer variable macro called eventLabel
});
});
And in the console when I click on the element with class 'tag' I get this message Tag Not Fired On This Page and this is the message when firing triggers
Event equals myNewTransaction
_event equals My New Transaction
Please help