问题
How can I catch an event when a user subscribes to my Youtube Channel on my site?
回答1:
You could use an image, button, or banner in order to record the action(click) that lands them on the YouTube subscription page.
<p> <a href="DOMAIN" onClick="_gaq.push(['_trackEvent', 'ChannelSubcription', 'SUBSCRIBED', 'SUBSCRIPTION');"><img src="Title.jpg"></a></p>
If you're trying to record the action from an embedded player you'll need to use YouTube's API - it would be wise to reference their beta API. You could also use the custom iframe subscribe button for your channel and record without having them exit your site.
来源:https://stackoverflow.com/questions/11283159/youtube-subscribe-button-event