Last active
December 5, 2024 18:47
-
-
Save RobSpectre/be5246d2ffcd42e3239c0f0e7426e687 to your computer and use it in GitHub Desktop.
Google Tag Manager capture key commands
This file contains 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
dataLayer.push({ | |
'event': 'Docs Copy To Clipboard With Keyboard', | |
'eventCallback': function() { | |
document.addEventListener('copy', function(e) { | |
dataLayer.push({ | |
'event': 'Docs Copy To Clipboard With Keyboard' | |
}); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment