Analytics
2.5K members online now
2.5K 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

We want to track the pop up button click (outbound link click) as a goal in Google Analytics

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi,

 

I am facing a issue. We want to track the pop up button click (outbound link click) as a goal in Google Analytics.

 

A "Book Now" button in my website when I clicked on the button a pop up is open. In pop up there is also a button "Proceed" with outbound URL (means redirecting on other website).

 

How can track the pop up button click (outbound link click) as a even in Google Analytics?

Note: Avoid Google Tag Manager.

 

Example: My Website URL is: www.abc.com

                 Outbound Link in Pop up is: www.xyz.com

 

Please suggest me how we can track outbound URL click in a popup.

 

Thanks

Re: We want to track the pop up button click (outbound link click) as a goal in Google Analytics

Explorer ✭ ✭ ✭
# 2
Explorer ✭ ✭ ✭
hey Pavan,

try this
<a href="http://xyz.com" onclick="ga('send', 'event', 'Outbound Link', 'http://xyz.com');" ></a>

cheers
Noman Karim