Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
OptinMonster Dynamic Text Replacement API - setCustomVariable
<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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment