window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-881396274'); 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 4 $(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'); } ); });