Last active
May 7, 2020 21:47
-
-
Save thomasgriffin/0b666111c977977a3dd3 to your computer and use it in GitHub Desktop.
OptinMonster Dynamic Text Replacement API - setCustomVariable
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
<script type="text/javascript"> | |
var OptinMonsterCustomVariables = function(app) { | |
/** | |
* API method for setting a custom variable. Must be accessed via the app object. | |
* | |
* @param string $key The custom variable key to set. | |
* @param string $value The custom variable value to set for the key. | |
* @return null | |
*/ | |
app.setCustomVariable('foo', 'bar'); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment