Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
cd2bf8d1
Commit
cd2bf8d1
authored
Feb 23, 2021
by
lianahus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added matomo for remix and remix-beta
parent
bed946d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
index.html
apps/remix-ide/src/index.html
+22
-14
No files found.
apps/remix-ide/src/index.html
View file @
cd2bf8d1
...
...
@@ -34,18 +34,26 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, user-scalable=no"
>
<!-- Matomo -->
<script
type=
"text/javascript"
>
var
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq
.
push
([
'disableCookies'
]);
_paq
.
push
([
'enableLinkTracking'
]);
_paq
.
push
([
'trackPageView'
]);
(
function
()
{
var
u
=
"https://matomo.ethereum.org/"
;
_paq
.
push
([
'setTrackerUrl'
,
u
+
'matomo.php'
])
_paq
.
push
([
'setSiteId'
,
'27'
])
var
d
=
document
,
g
=
d
.
createElement
(
'script'
),
s
=
d
.
getElementsByTagName
(
'script'
)[
0
]
g
.
type
=
'text/javascript'
;
g
.
async
=
true
;
g
.
src
=
u
+
'matomo.js'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)
})()
if
(
window
.
location
.
hostname
.
includes
(
'remix'
))
{
var
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq
.
push
([
'disableCookies'
]);
_paq
.
push
([
'enableLinkTracking'
]);
_paq
.
push
([
'trackPageView'
]);
(
function
()
{
var
u
=
"https://matomo.ethereum.org/"
;
_paq
.
push
([
'setTrackerUrl'
,
u
+
'matomo.php'
])
if
(
window
.
location
.
hostname
===
'remix.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'23'
])
}
else
if
(
window
.
location
.
hostname
===
'remix-alpha.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'27'
])
}
else
if
(
window
.
location
.
hostname
===
'remix-beta.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'25'
])
}
var
d
=
document
,
g
=
d
.
createElement
(
'script'
),
s
=
d
.
getElementsByTagName
(
'script'
)[
0
]
g
.
type
=
'text/javascript'
;
g
.
async
=
true
;
g
.
src
=
u
+
'matomo.js'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)
})()
}
</script>
<!-- End Matomo Code -->
</head>
...
...
@@ -70,8 +78,8 @@
}
return
params
}
const
defaultVersion
=
'0.8.0'
let
versionToLoad
=
urlParams
().
appVersion
?
urlParams
().
appVersion
:
defaultVersion
const
defaultVersion
=
'0.8.0'
let
versionToLoad
=
urlParams
().
appVersion
?
urlParams
().
appVersion
:
defaultVersion
let
assets
=
{
'0.8.0'
:
[
'https://use.fontawesome.com/releases/v5.8.1/css/all.css'
,
'assets/css/pygment_trac.css'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment