AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.1K members online now
4.1K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

tracking with virtual page views

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

hi!

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?

kind regards

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author mirco d
December 2016

tracking with virtual page views

Top Contributor
# 2
Top Contributor

This should work just fine Smiley Happy

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author mirco d
December 2016

tracking with virtual page views

Top Contributor
# 2
Top Contributor

This should work just fine Smiley Happy

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan