window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-881396274'); !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '127908827970720'); fbq('track', 'PageView'); function gtag_report_conversion2(url) { var callback = function () { if (typeof(url) != 'undefined') { } }; gtag('event', 'conversion', { 'send_to': 'AW-881396274/gU4CCIvSwJQCELKUpKQD', 'event_callback': callback }); return false; } function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { } }; gtag('event', 'conversion', { 'send_to': 'AW-881396274/48EVCP-7z5QCELKUpKQD', 'event_callback': callback }); return false; } 解放区 | 天狼院書店 - Part 2 $(document).ready(function() { $('.konyu').click( function(){ console.log("konyuclick"); $(".konyuform").submit(); fbq('track', 'AddPaymentInfo'); return gtag_report_conversion('https://www.paypal.com/cgi-bin/webscr'); } ); $('.imasugukounyu').click( function(){ console.log("imasugukounyuclick"); $(".imasugukounyuform").submit(); fbq('track', 'AddPaymentInfo'); return gtag_report_conversion2('https://www.paypal.com/cgi-bin/webscr'); } ); });