mirror of
https://github.com/moonlight-stream/moonlight-stream.github.io.git
synced 2025-07-01 15:25:34 +00:00
Restore outbound link events
This commit is contained in:
parent
7e9758865d
commit
7ec1225b65
@ -320,6 +320,15 @@
|
|||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- GA outbound link events -->
|
||||||
|
<script>
|
||||||
|
!function(t){"use strict";var e=window.location.host;t("body").on("click",function(n){
|
||||||
|
function o(){document.location=a}if(!n.isDefaultPrevented()&&"function"==typeof ga){
|
||||||
|
var i=t(n.target).closest("a");if(1==i.length&&e!=i[0].host){n.preventDefault();
|
||||||
|
var a=i[0].href;ga("send",{hitType:"event",eventCategory:"outbound",eventAction:"link",
|
||||||
|
eventLabel:a,hitCallback:o}),setTimeout(o,1e3)}}})}(jQuery);
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user