Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pages/Proposal/containers/CreateProposal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ const CreateProposal = () => {
address
);
if (minedRes.status === "success") {
dataLayer.push({'event': 'apply-contract', 'contractAction': `${isUpdate ? 'update': 'deploy'}`, 'approvalMode': 'withoutApproval'});
const { contractAddress, contractName, contractVersion } =
minedRes;
// open modal
Expand Down Expand Up @@ -532,6 +533,7 @@ const CreateProposal = () => {
address: currentWallet.address,
});
}
dataLayer.push({'event': 'apply-contract', 'contractAction': `${isUpdate ? 'update': 'deploy'}`, 'approvalMode': 'bpApproval'});
setApplyModal({
visible: true,
title: proposalId
Expand Down
27 changes: 17 additions & 10 deletions template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,30 @@
<html lang="zh-CN">

<head>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
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', 'GTM-5ZN6KPD4');</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<meta name="description"
content="aelf explorer enables users to keep track of all the on-chain activities on aelf network, including real-time block data, transaction history, addresses, proposals, election results, etc.">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
</head>

<body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-E620VD7EPL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-E620VD7EPL');
</script>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ZN6KPD4" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="app" class="aelf-app"></div>
</body>

Expand Down