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

<script>ga('send', 'event', {
    eventCategory: '...',
    eventAction: '...',
    eventLabel: '...'

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 and acknowledge that you have read and understand our privacy policy and code of conduct.