forlinx commited on
Commit
02e7723
·
verified ·
1 Parent(s): 3dbe2ce

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +13 -1
index.html CHANGED
@@ -1,6 +1,18 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
 
 
 
 
 
 
 
 
 
 
 
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Forlinx Embedded | Resource Center</title>
@@ -562,7 +574,7 @@
562
  </td>
563
  <td>${sizeFormatted}</td>
564
  <td style="color:#888; font-size:13px;">${formattedDate}</td>
565
- <td><a href="${dUrl}" target="_blank" class="btn-download">Download</a></td>
566
  `;
567
  }
568
  listBody.appendChild(row);
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
+ <!-- Google tag (gtag.js) -->
5
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z920J6JQHG"></script>
6
+ <script>
7
+ window.dataLayer = window.dataLayer || [];
8
+ function gtag(){dataLayer.push(arguments);}
9
+ gtag('js', new Date());
10
+
11
+ gtag('config', 'G-Z920J6JQHG', {
12
+ 'page_location': window.location.href, // 确保记录的是 Space 的实际路径
13
+ 'cookie_flags': 'SameSite=None;Secure' // 提升在 iframe 环境下的稳定性
14
+ });
15
+ </script>
16
  <meta charset="UTF-8">
17
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
  <title>Forlinx Embedded | Resource Center</title>
 
574
  </td>
575
  <td>${sizeFormatted}</td>
576
  <td style="color:#888; font-size:13px;">${formattedDate}</td>
577
+ <td><a href="${dUrl}" target="_blank" class="btn-download" onclick="gtag('event', 'file_download', {'file_name': '${name}'});">Download</a></td>
578
  `;
579
  }
580
  listBody.appendChild(row);