Update bookmarklet.js
This commit is contained in:
parent
89a034ba30
commit
736bceec07
@ -4,8 +4,7 @@
|
|||||||
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');
|
ga('create', 'UA-50840116-3', 'auto', {'alwaysSendReferrer': true});
|
||||||
ga('send', 'pageview');
|
|
||||||
// </GoogleAnalytics>
|
// </GoogleAnalytics>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -53,13 +52,15 @@ try {
|
|||||||
|
|
||||||
var issueKeyList = getSelectedIssueKeyList();
|
var issueKeyList = getSelectedIssueKeyList();
|
||||||
|
|
||||||
ga('send', 'event', 'bookmarklet', 'click', { 'eventValue': issueKeyList.length });
|
ga('send', 'event', 'bookmarklet', 'click', 'print', issueKeyList.length );
|
||||||
|
|
||||||
if(issueKeyList.length <= 0){
|
if(issueKeyList.length <= 0){
|
||||||
alert("Please select at least one issue.");
|
alert("Please select at least one issue.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ga('send', 'pageview', '/cardprinter');
|
||||||
|
|
||||||
// open print preview
|
// open print preview
|
||||||
jQuery("body").append(printOverlayHTML);
|
jQuery("body").append(printOverlayHTML);
|
||||||
jQuery("#card-print-overlay").prepend(printOverlayStyle);
|
jQuery("#card-print-overlay").prepend(printOverlayStyle);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user