-
-
Save jtsternberg/aa7552dec855f77b06efe9640821f177 to your computer and use it in GitHub Desktop.
OptinMonster Dynamic Text Replacement API - getCustomVariables
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
<script type="text/javascript"> | |
document.addEventListener('om.Dtr.init', function(event) { | |
/** | |
* API method for retrieving all custom variables. Must be accessed via the Dtr object. | |
* | |
* @return object A JavaScript object with key/value pairs for custom variables. | |
*/ | |
event.detail.Dtr.getCustomVariables(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment