Events Calendar
//Load the Facebook JS asynchronously (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 = "//connect.facebook.net/en_US/all.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
//Initialize the Facebook JS window.fbAsyncInit = function () {
FB.init({ appId: null, status: true, //Check Facebook Login status cookie: true, // Enable cookies to allow the server to access the session xfbml: true //Look for social plugins on the page });
//Logged In Users FB.getLoginStatus(function (response) { if (response.status !== "unknown") { ga('set', 'dimension1', 'Logged In'); } });
//Facebook Likes FB.Event.subscribe('edge.create', function (href, widget) { var currentPage = $(document).attr('title'); ga('send', { 'hitType': 'social', 'socialNetwork': 'Facebook', 'socialAction': 'Like', 'socialTarget': href, 'page': currentPage }); });
//Facebook Unlikes FB.Event.subscribe('edge.remove', function (href, widget) { var currentPage = $(document).attr('title'); ga('send', { 'hitType': 'social', 'socialNetwork': 'Facebook', 'socialAction': 'Unlike', 'socialTarget': href, 'page': currentPage }); });
//Facebook Send/Share FB.Event.subscribe('message.send', function (href, widget) { var currentPage = $(document).attr('title'); ga('send', { 'hitType': 'social', 'socialNetwork': 'Facebook', 'socialAction': 'Send', 'socialTarget': href, 'page': currentPage }); });
//Facebook Comments FB.Event.subscribe('comment.create', function (href, widget) { var currentPage = $(document).attr('title'); ga('send', { 'hitType': 'social', 'socialNetwork': 'Facebook', 'socialAction': 'Comment', 'socialTarget': href, 'page': currentPage }); }); };
// Load Twitter JS-API asynchronously window.twttr = (function (d, s, id) { var t, js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { return } js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } }) }(document, "script", "twitter-wjs"));
// When Twitter loads (asynchronously), bind the events to tracking functions twttr.ready(function (twttr) { twttr.events.bind('tweet', track_tweet); twttr.events.bind('follow', track_follow); });
//Tweets function track_tweet(event) { if (event) { var href = $(location).attr('href'); var pageTitle = $(document).attr('title'); ga('send', { //Google Analytics tracking 'hitType': 'social', 'socialNetwork': 'Twitter', 'socialAction': 'Tweet', 'socialTarget': href, 'page': pageTitle }); } }
//Follows function track_follow(event) { if (event) { var href = $(location).attr('href'); var pageTitle = $(document).attr('title'); ga('send', { //Google Analytics tracking 'hitType': 'social', 'socialNetwork': 'Twitter', 'socialAction': 'Follow', 'socialTarget': href, 'page': pageTitle }); } }
// Load Google +1 JS asynchronously (function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();
//Load pinit.js asynchronously (function (d) { var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT'); p.type = 'text/javascript'; p.async = true; p.src = '//assets.pinterest.com/js/pinit.js'; f.parentNode.insertBefore(p, f); }(document));
// For now bind to Pin click using $ (till Pinterest allows a callback function --> $(document).ready(function () { $('div.pin').click(function () { var href = $(location).attr('href'); var pageTitle = $(document).attr('title'); ga('send', { //Google Analytics tracking 'hitType': 'social', 'socialNetwork': 'Pinterest', 'socialAction': 'Article Pin', 'socialTarget': href, 'page': pageTitle }); }); });
The interactive calendar highlights federal and province tax due dates, special firm events and other important dates that may be of interest to you. Because the calendar is continually updated, check back often to keep track of filing requirements, deadlines and other events that will help you stay current and up-to-date.