Created
April 3, 2020 19:09
-
-
Save adriaandotcom/467f3172b3902faee9882131cf4c3c00 to your computer and use it in GitHub Desktop.
Send events on outgoing links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test page</title> | |
<script>window.sa_event=window.sa_event||function(){a=[].slice.call(arguments);sa_event.q?sa_event.q.push(a):sa_event.q=[a]};</script> | |
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script> | |
</head> | |
<body> | |
<a href="https://example.com" onClick="sa_event('click_to_example_com')" target="_blank">Link to example.com</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment