$(document).ready(function(){ $('.pageLinks .container a').on("click",function(){ dataLayer.push({"event":"bottom_nav", "event_action":"click ", "event_label":$(this).text(), "custom_page_url":window.location.href}); }); $('.language a').on("click",function(){ var lang = 'hindi'; if($(this).text() == 'ENG'){ var lang = 'english' } dataLayer.push({"event":"lang_select", "event_label":lang}); }); }); //$(document).ready(function(){ // $('#commentbtn').on("click",function(){ //(function(d, s, id) { // var js, fjs = d.getElementsByTagName(s)[0]; // if (d.getElementById(id)) return; // js = d.createElement(s); js.id = id; // js.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10&appId=133005220097303"; // fjs.parentNode.insertBefore(js, fjs); //}(document, 'script', 'facebook-jssdk')); // $(".cmntbox").toggle(); // }); //});