@mirai/core 0.3.268 → 0.3.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/index.html +12 -6
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -10,23 +10,29 @@
|
|
|
10
10
|
function gtag() {
|
|
11
11
|
dataLayer.push(arguments);
|
|
12
12
|
}
|
|
13
|
-
gtag('consent', '
|
|
13
|
+
gtag('consent', 'update', {
|
|
14
14
|
ad_storage: 'granted',
|
|
15
15
|
ad_user_data: 'granted',
|
|
16
16
|
ad_personalization: 'granted',
|
|
17
17
|
analytics_storage: 'granted',
|
|
18
18
|
});
|
|
19
|
-
function
|
|
19
|
+
function setId() {
|
|
20
20
|
const params = new URLSearchParams(window.location.search);
|
|
21
21
|
if (params.get('useTracking')) {
|
|
22
|
-
|
|
22
|
+
const time = setInterval(() => {
|
|
23
|
+
const el = document.querySelector('#mirai');
|
|
24
|
+
if (!el) return;
|
|
25
|
+
|
|
26
|
+
clearInterval(time);
|
|
27
|
+
document.querySelector('#mirai').dataset.miraiId = params.get('miraiId') || '100379008';
|
|
28
|
+
}, 100);
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
|
-
|
|
31
|
+
setId();
|
|
26
32
|
</script>
|
|
27
33
|
</head>
|
|
28
|
-
<body
|
|
29
|
-
<div data-mirai-engine="mirai_tr" data-init="
|
|
34
|
+
<body>
|
|
35
|
+
<div data-mirai-engine="mirai_tr" data-init="false"></div>
|
|
30
36
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
37
|
<!-- hotel example -->
|
|
32
38
|
<div id="mirai" data-mirai-id="100379008"></div>
|