Blu-ray(ブルーレイ)&DVD再生ソフトとビデオ編集ソフト - サイバーリンク (CyberLink) if(navigator.userAgent.indexOf("iPad") >= 0 || navigator.userAgent.indexOf("iPhone") >= 0){ document.title = "CyberLink"; } if(window.location.protocol.indexOf("http:")>=0){ console.log("redirec to "+window.location.href.replace("http:","https:")); window.location=window.location.href.replace("http:","https:"); } let isRobot = RegExp(/PTST|moto g power|Google|AOL|Baidu|bingbot|DuckDuckBot|Yahoo|Yandex/g).test(navigator.userAgent); String.prototype.gaEndsWith = function(suffix){ return (this.substr(this.length - suffix.length) === suffix); } var _removeR = function() { var u = location.pathname + location.search; if(u.gaEndsWith('?r=1')){ u = u.replace(/\?r=1/g,""); } u = u.replace(/\&r=1/g,""); u = u.replace("r=1&",""); u = u.replace(/[&]?UUID=[^&]+/i, ''); u = u.replace(/[&]?CDKEY=[^&]+/i, ''); u = u.replace(/[&]?TOKEN=[^&]+/i, ''); u = u.replace(/[&]?encode=[^&]+/i, ''); return u; }; const showGaCodeV4 = "true"; const userLocale = "ja_JP"; const userLangId = "3"; const showFacebookPixelCode = "1"; const isShowRMKTCode = "true"; const show_fb_pixel_1725889891030525_tag = showFacebookPixelCode == 1 && userLocale == 'zh_TW'; const show_naver_tag = userLangId == 5; if(!isRobot){ var gaJsHead = document.getElementsByTagName('head')[0]; var gaJsScript = document.createElement('script'); gaJsScript.setAttribute('src', "https://www.googletagmanager.com/gtag/js?id=G-023S5XBTE2"); gaJsScript.async = true; gaJsHead.append(gaJsScript); } window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} (function(w,d,s,l,i){ if(!isRobot){ w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); } })(window,document,'script','dataLayer',document.getElementById("gtmCode").value); document.addEventListener("DOMContentLoaded", function(event) { if(!isRobot){ var noScriptNode=document.createElement('noscript'); var iFrameNode=document.createElement('iframe'); iFrameNode.setAttribute('src', 'https://www.googletagmanager.com/ns.html?id='+document.getElementById("gtmCode").value); iFrameNode.setAttribute('height', '0'); iFrameNode.setAttribute('width', '0'); iFrameNode.setAttribute('style', 'display:none;visibility:hidden'); noScriptNode.appendChild(iFrameNode); document.querySelector('body').prepend(noScriptNode); let head = document.getElementsByTagName('head')[0]; let script = document.createElement('script'); script.src = "https://web-static.cyberlink.com/web/tracking-sdk/v1/latest/clTracking.umd.js"; head.append(script); window.CLTrackingInit = function () { window.CLTracking.init( { category: "CyberLink Tracking", disableDefaultEvent: false }, () => { console.log("CLTracking Init Success") }, (error) => { console.log("Init CLTracking Failed: ", error) }, ) } window.CLTracking = window.CLTracking || []; } if (!(navigator.userAgent.toLowerCase().indexOf("mobile") > 0 || navigator.userAgent.toLowerCase().indexOf("pad") > 0 || navigator.userAgent.toLowerCase().indexOf("android") > 0)) { // add ga4FreeDownloadSetAttribute func for download button which use dlJPNGAFormSubmit func const freeDownloadElements = document.querySelectorAll('[onclick*="dlJPNGAFormSubmit"], [onclick*="clickDownloadBtn"], [onclick*="dlFormSubmit"], [onclick*="dlFormAutoSubmit"]'); freeDownloadElements.forEach(element => { const originalOnclick = element.getAttribute("onclick"); element.setAttribute("onclick", "ga4FreeDownloadSetAttribute.call(this); " + originalOnclick); }); } // add ga4BuyButtonSetAttribute func for buy now button which use check_add2cart func const buyNowElements = document.querySelectorAll('[onclick*="check_add2cart"], [onclick*="store_add2cart"]'); buyNowElements.forEach(element => { const originalOnclick = element.getAttribute("onclick"); element.setAttribute("onclick", "ga4BuyButtonSetAttribute.call(this); " + originalOnclick); }); var buyNowElementsDirectly2Cart = document.querySelectorAll('[data-ga-event*="inbound_click_buy_button"]:not([data-ga-event*="page_view_custom"]):not([onclick*="check_add2cart"]):not([onclick*="store_add2cart"]):not([href*="buy365=1"]):not([href*="buy=1"]), [data-ga-event*="inbound_click_buy_button"]:not([data-ga-event*="page_view_custom"]):not([onclick]):not([href*="buy365=1"]):not([href*="buy=1"])'); buyNowElementsDirectly2Cart.forEach(element => { const dataGaEventAttr = element.getAttribute("data-ga-event"); element.setAttribute("data-ga-event", dataGaEventAttr + ",inbound_click_add_cart"); }); }); window.dataLayer = window.dataLayer || []; console.log('_tracking load'); function ga4FreeDownloadSetAttribute() { document.getElementsByName('dlForm')[0].setAttribute('data-ga-click_point', undefined); document.getElementsByName('dlForm')[0].setAttribute('data-ga-product', undefined); document.getElementsByName('dlForm')[0]
FACT BOX ・ 要点整理
- 出典:PR Times
- 分類:ニュース
- 関連組織:Google / AOL / Baidu
- 製品・サービス:Blu-ray(ブルーレイ)再生ソフト / DVD再生ソフト