Skip to content

Instantly share code, notes, and snippets.

@Je33
Created May 24, 2017 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Je33/25b66763db83d543367e3524401c9e35 to your computer and use it in GitHub Desktop.
Save Je33/25b66763db83d543367e3524401c9e35 to your computer and use it in GitHub Desktop.
(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