This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 結帳頁寄送簡訊 --> | |
| <script> | |
| (function() { | |
| var phone = getPhone() || getFastFormPhone(); | |
| var products = getProducts(); | |
| sendSMS(phone, products); | |
| // 購物車的電話 | |
| function getPhone() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script> | |
| <script> | |
| (function($){ | |
| var dataLayer = window.dataLayer || []; | |
| var eventCategoryString = '導航列'; | |
| $('.from_detailData').click(function() { | |
| var label = $(this).find('img').attr('alt'); | |
| pushDatalayer('BN點擊', label); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.js"></script> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var jQuery = jQuery || undefined; | |
| (function($) { | |
| var dataLayer = window.dataLayer || []; | |
| var eventCategoryString = '首頁'; | |
| eventFun($); | |
| function eventFun($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GA3 增強型電商(進階電商).js | |
| // https://gist.github.com/fergusKe/f096e4c438ca155c0b3191f956777e0d | |
| // 會員註冊事件.js | |
| // https://gist.github.com/fergusKe/5324de8dd19cf3807a2ccc651e5816b8 | |
| // 等jQ載入完成執行程式.js | |
| // https://gist.github.com/fergusKe/7f19f5e616098e251c8a586c9258c9ab | |
| // 判斷關鍵字放入圖片.html | |
| // https://gist.github.com/fergusKe/3ed24a87094be2f385a08eb7bae278f8 | |
| // 全部資料都填寫才送出.js | |
| // https://gist.github.com/fergusKe/7d2ba06f0da77e721b0e4c1c0e059c52 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| (function($) { | |
| var dataLayer = window.dataLayer || []; | |
| var eventCategoryString = '首頁'; | |
| $('#info .body-right .box .mob-show:eq(0)').on('click', function() { | |
| var label = $('#info .body-right .box .red:eq(0)').text().replace(':', ''); | |
| pushDatalayer('基本資料貴賓電話點擊', label); | |
| }); | |
| $('#info .body-right .box .mob-show:eq(1)').on('click', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function td_codes(){ | |
| // 我們的程式碼寫在這裡 | |
| } | |
| // 不斷檢查 直到網頁上有jquey為止 | |
| var td_interval = setInterval(function(){ | |
| if(typeof($) !== "undefined"){ | |
| clearInterval(td_interval); | |
| td_codes(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- LINE Tag Base Code --> | |
| <!-- Do Not Modify --> | |
| <script> | |
| (function(g,d,o){ | |
| g._ltq=g._ltq||[];g._lt=g._lt||function(){g._ltq.push(arguments)}; | |
| var h=location.protocol==='https:'?'https://d.line-scdn.net':'http://d.line-cdn.net'; | |
| var s=d.createElement('script');s.async=1; | |
| s.src=o||h+'/n/line_tag/public/release/v1/lt.js'; | |
| var t=d.getElementsByTagName('script')[0];t.parentNode.insertBefore(s,t); | |
| })(window, document); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // v1 | |
| ratio = 25; | |
| box = [] | |
| $(window).scroll(function () { | |
| var scrollRatio = getScrollRatio(25); | |
| console.log('box = ', box); | |
| console.log('scrollRatio = ', scrollRatio); | |
| if ( | |
| (scrollRatio == 0 || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> | |
| <script> | |
| (function($) { | |
| var dataLayer = window.dataLayer || []; | |
| var eventString = 'cusevent'; | |
| var eventCategoryString = '2018012月-活動頁'; | |
| var eventActionString = '會員招募活動'; | |
| var map_area = { | |
| 'Map':{ | |
| '41,221,354,509': '代購集運一條龍 - 日本購物網站', |