Forked from Je33/gist:25b66763db83d543367e3524401c9e35
Created
September 27, 2019 17:55
-
-
Save Shoora/4d1d21efe12a58419e2b891d7f86726f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment