Update bookmarklet.js

This commit is contained in:
Bengt Brodersen 2015-01-28 00:39:13 +01:00
parent 736bceec07
commit de9bcf5d1a

View File

@ -4,7 +4,13 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50840116-3', 'auto', {'alwaysSendReferrer': true}); ga('create', 'UA-50840116-3', 'auto');
ga('set', 'location', window.location.protocol + '//' + window.location.host + window.location.pathname);
ga('set', 'hostname', window.location.hostname);
ga('set', 'page', '/cardprinter');
ga('set', 'title', document.title);
//ga('set', 'campaignSource', '(direct)');
//ga('set', 'campaignMedium', '(none)');
// </GoogleAnalytics> // </GoogleAnalytics>
try { try {
@ -59,7 +65,7 @@ try {
return; return;
} }
ga('send', 'pageview', '/cardprinter'); ga('send', 'pageview');
// open print preview // open print preview
jQuery("body").append(printOverlayHTML); jQuery("body").append(printOverlayHTML);