1

I have tried to send an event in .phtml file using

<script>ga('send', 'event', {
    eventCategory: '...',
    eventAction: '...',
    eventLabel: '...'
});</script>

But Browser Console says that ga is undefined, Please help me how can I send an event to Google Analytics.

I will be very thankful to you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.