Privacy Settings Page

Name Description Enable ?
Cookie We use cookies to provide a personalised experience for our users.
Facebook Pixel Third party service for managing advertisement activities related to the resource via Facebook
Google Analytics Used for aggregated statistics to improve user experience on the resource.
jQuery(document).ready(function($) { $('.njt-gdpr-privacy-settings-btn').on('click', function(event) { var frm = $(this).closest('form'); var s = []; $.each(frm.find('input[name^="s"]'), function(index, el) { if ($(el).prop('checked')) { s.push($(el).val()); } }); $.ajax({ url: 'https://scienmag.com/wp-admin/admin-ajax.php', type: 'POST', data: { action: 'njt_gdpr_save_privacy_settings', s: s }, }) .done(function(json) { if (json.success) { alert('Success'); location.reload(); } else { alert(json.data.mess); } }) .fail(function() { alert('Please refresh and try again.'); }); return false; }); });