Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timersys/7facec9c80935a0df1c6 to your computer and use it in GitHub Desktop.
Save timersys/7facec9c80935a0df1c6 to your computer and use it in GitHub Desktop.
Custom conversions links on Wordpress Popups Plugin
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