IDGraph Mobile SDK Developer Guide
跳至導覽
跳至搜尋
使用說明
1. 請於頁面程式<head></head>之間嵌入底下的javascript source(ProfileID 請帶入追蹤目標的 ID(由TAMedia提供)):
<script type="text/javascript">
(function(){
"undefined"==typeof window.IDG&&function(a,e,f,g,b,c,d){a[b]=a[b]||{};a[b].send=a[b].send||function(){(a[b].q=a[b].q||
[]).push(arguments)};c=e.createElement(f);d=e.getElementsByTagName(f)
[0];c.async=1;c.src="https://adc.tamedia.com.tw/idg/"+g;d.parentNode.insertBefore(c,d)}(window,document,"script","idg.js","IDG");
window.IDG.send('SEND', 'ProfileID');
})();
</script>
範例程式
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<script type="text/javascript">
(function(){
"undefined"==typeof window.IDG&&function(a,e,f,g,b,c,d){a[b]=a[b]||{};a[b].send=a[b].send||function(){(a[b].q=a[b].q||
[]).push(arguments)};c=e.createElement(f);d=e.getElementsByTagName(f)
[0];c.async=1;c.src="https://adc.tamedia.com.tw/idg/"+g;d.parentNode.insertBefore(c,d)}(window,document,"script","idg.js","IDG");
window.IDG.send('SEND', 'TEST12345678'); //ProfileID 請帶入追蹤目標的 ID(由TAMedia提供)
})();
</script>
</head>
<body>
</body>
</html>
參數說明
| 參數名稱 | 參數型別 | 說明 |
| ProfileID | String | ProfileID,由TAMedia提供 |