Last active
August 29, 2015 14:21
-
-
Save timersys/7facec9c80935a0df1c6 to your computer and use it in GitHub Desktop.
Custom conversions links on Wordpress Popups Plugin
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
jQuery( function($){ | |
var spu_id = 120; // Replace with your own popup ID | |
/** | |
* Custom conversions links on Wordpress Popups Plugin | |
* http://wordpress.org/plugins/popups/ | |
* On this example your popup id is 120 | |
* */ | |
jQuery('#spu-'+spu_id+' a:not(".spu-close-popup")').on('click', function(){ | |
// Track the popups. Uncomment only if you are using premium version | |
//window.SPU.track(spu_id, true); | |
// hide the popup | |
window.SPU.hide(spu_id); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment