Skip to content

Instantly share code, notes, and snippets.

@Caerbannog
Created March 3, 2015 13:11
Show Gist options
  • Save Caerbannog/797520d31f2a49ba1ded to your computer and use it in GitHub Desktop.
Save Caerbannog/797520d31f2a49ba1ded to your computer and use it in GitHub Desktop.
getUrlForCopyPaste: function(a) {
var d =
k.val("readMoreUrl") || q.canonical.get() || b.removeTrackingParam(c.doc("location.href"));
return t.prepareURLForSharing(k.val("publisherKey"), d, "99", a, {
shorten: !1,
tracking: k.val("defaults.transformations.tracking")
})
},
copyPasteCallback: function(a, d) {
var e = q.canonical.get() || b.removeTrackingParam(c.doc("location.href"));
m.track("event", "Clipboard", e);
m.track("social", "Clipboard", e);
y.increment({
publisherKey: k.val("publisherKey"),
channel: "clipboard",
url: e
});
this.doUserCallback(f.dataloggerEvent.share,
"clipboard");
this.logDataLoggerEvent(f.dataloggerEvent.share, {
vGUID: k.val("vguid") || b.GUID(!0),
sGUID: a,
pu: e,
sm: k.val("mode"),
sc1: "clipboard",
text: d.substr(0, 2E3)
})
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment