DmitrMakeev commited on
Commit
4ff0571
1 Parent(s): 4c9baa9

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +36 -1
data_gc_tab.html CHANGED
@@ -125,4 +125,39 @@
125
  }
126
  return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
127
  }},
128
- {title:"Ссылка на поль
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
126
  return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
127
  }},
128
+ {title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
129
+ var ad_url = cell.getValue();
130
+ return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
131
+ }},
132
+ {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
133
+ var vk_id = cell.getValue();
134
+ return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
135
+ }},
136
+ {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
137
+ var chatId = cell.getValue();
138
+ if (chatId.startsWith('@')) {
139
+ chatId = chatId.substring(1); // Удаление символа @ в начале
140
+ }
141
+ return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
142
+ }},
143
+ {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
144
+ var phone = cell.getValue();
145
+ return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
146
+ }},
147
+ {title:"Статус WhatsApp", field:"ws_statys"},
148
+ {title:"Стутус подписки", field:"ws_stop"},
149
+ {title:"Вебинары", field:"web_statys"},
150
+ {title:"Прогрес по воронке", field:"fin_progress"},
151
+ {title:"utm_source", field:"pr1"},
152
+ {title:"utm_medium", field:"pr2"},
153
+ {title:"utm_campaign", field:"pr3"},
154
+ {title:"utm_term", field:"pr4"},
155
+ {title:"utm_content", field:"pr5"}
156
+ ],
157
+ });
158
+ })
159
+ .catch(error => console.error('Error fetching data:', error));
160
+ });
161
+ </script>
162
+ </body>
163
+ </html>