Configure a YouTube subscription Button

Subscribe to your YouTube channel with one click



    First of all write https://developers.google.com/youtube/ in URL bar Than go to Add more YouTube features and than you will see Subscribe Buttons Than Click on ADD A BUTTON.



       And Than You Will See Following type of option ,The tool below lets you configure an embedded subscription button. You can set the button's display options, preview the button, and copy the code needed to insert that button on your page.



        And Than Copy This Type of Code which is show under Subscription Button Preview and Paste this code in your website or blog etc. 


 <script src="https://apis.google.com/js/platform.js"></script>
<script>
  function onYtEvent(payload) {
    if (payload.eventType == 'subscribe') {
      // Add code to handle subscribe event.
    } else if (payload.eventType == 'unsubscribe') {
      // Add code to handle unsubscribe event.
    }
    if (window.console) { // for debugging only
      window.console.log('YT event: ', payload);
    }
  }
</script>
<div class="g-ytsubscribe" data-channel="GoogleDevelopers" data-layout="default" data-count="default" data-onytevent="onYtEvent"></div>


For More Details Watch Following Videos : 


- : Thank You For Visit : -

Post a Comment

0 Comments