Shoora
9/27/2019 - 5:55 PM

gistfile1.txt

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga_new');

ga_new('create', 'UA-57437536-39', 'auto');
ga_new('send', 'pageview');

jQuery(document).ready(function($) {
	$('.tel a').bind('click', function() {
    	ga_new('send', 'event', 'button-phone', 'tap', 'navigation');
	});
  $('.link_link a').bind('click', function() {
    	ga_new('send', 'event', 'button-train', 'tap', 'navigation');
	});
  $('.link_shedule a').bind('click', function() {
    	ga_new('send', 'event', 'button-schedule', 'tap', 'navigation');
	});
  $('.link_menu a').bind('click', function() {
    	ga_new('send', 'event', 'button-more', 'tap', 'navigation');
	});
  $('.rsContent .text .btn:contains("Записаться")').bind('click', function() {
    	ga_new('send', 'event', 'button-order-slider', 'tap', 'slider');
	});
  $('.rsContent .text .btn:contains("Подробнее")').bind('click', function() {
    	ga_new('send', 'event', 'button-learn-more', 'tap', 'slider');
	});
  $('.topimage a[data-to="schedule"]').bind('click', function() {
    	ga_new('send', 'event', 'button-order', 'tap', 'item');
	});
  $('#popup-booking .submit a').bind('click', function() {
    	ga_new('send', 'event', 'button-order-final', 'tap', 'popup');
	});
  $('.submenu.filter a').bind('click', function() {
    	ga_new('send', 'event', 'button-category', 'tap', 'item');
	});
});