tracking with virtual page views
I don't know much about html.
I'd like to track when a user clicks on REQUEST A PHONE CALL, but this action doesn't generate a pageview when it occurs. The interesting part of the html file is this:
><a href="#!" onClick=”ga(‘send’, ‘pageview’, ‘/en/request-a-phone-call’);” data-toggle="modal" data-target="#login-modal" class="phone btn hvr-shutter-out-horizontal">REQUEST A PHONE CALL</a></li>
I added the part in bold. Do you think it is enough to track clicks on REQUEST A PHONE CALL? When a user clicks, it should appear the page '/en/request-a-phone-call' on google analytics. Am I wrong? How would you change it?