Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
608f1ba3
Commit
608f1ba3
authored
Mar 04, 2019
by
iamkun
Committed by
hetech
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update ga tracking (#14560)
* chore: update ga tracking * chore: update development mock
parent
e52c7e06
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
.eslintrc
.eslintrc
+1
-0
examples/components/theme-configurator/index.vue
examples/components/theme-configurator/index.vue
+1
-0
examples/index.tpl
examples/index.tpl
+3
-0
examples/pages/template/resource.tpl
examples/pages/template/resource.tpl
+8
-2
No files found.
.eslintrc
View file @
608f1ba3
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"mocha": true
"mocha": true
},
},
"globals": {
"globals": {
"ga": true,
"expect": true,
"expect": true,
"sinon": true
"sinon": true
},
},
...
...
examples/components/theme-configurator/index.vue
View file @
608f1ba3
...
@@ -143,6 +143,7 @@ export default {
...
@@ -143,6 +143,7 @@ export default {
getVars
()
getVars
()
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
defaultConfig
=
res
;
defaultConfig
=
res
;
ga
(
'
send
'
,
'
event
'
,
'
ThemeConfigurator
'
,
'
Init
'
);
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
onError
(
err
);
this
.
onError
(
err
);
...
...
examples/index.tpl
View file @
608f1ba3
...
@@ -35,4 +35,7 @@
...
@@ -35,4 +35,7 @@
ga
(
'
send
'
,
'
pageview
'
);
ga
(
'
send
'
,
'
pageview
'
);
});
});
</script><
%
}
%
>
</script><
%
}
%
>
<
%
if
(
process
.
env
.
NODE_ENV
!==
'
production
')
{
%
><script>
var
ga
=
function
()
{};
</script><
%
}
%
>
</html>
</html>
examples/pages/template/resource.tpl
View file @
608f1ba3
...
@@ -142,7 +142,10 @@
...
@@ -142,7 +142,10 @@
<img
src=
"~examples/assets/images/Axure-Components.svg"
alt=
""
>
<img
src=
"~examples/assets/images/Axure-Components.svg"
alt=
""
>
<h3><
%=
3
></h3>
<h3><
%=
3
></h3>
<p><
%=
4
></p>
<p><
%=
4
></p>
<a
href=
"https://github.com/ElementUI/Resources/raw/master/Element_Components_v2.0.0.rplib"
><
%=
5
></a>
<a
onclick=
"ga('send', 'event', 'ResourceDownload', 'Download', 'Axure');"
href=
"https://github.com/ElementUI/Resources/raw/master/Element_Components_v2.0.0.rplib"
><
%=
5
></a>
</div>
</div>
</li>
</li>
<li>
<li>
...
@@ -150,7 +153,10 @@
...
@@ -150,7 +153,10 @@
<img
src=
"~examples/assets/images/Sketch-Template.svg"
alt=
""
>
<img
src=
"~examples/assets/images/Sketch-Template.svg"
alt=
""
>
<h3><
%=
6
></h3>
<h3><
%=
6
></h3>
<p><
%=
7
></p>
<p><
%=
7
></p>
<a
href=
"https://github.com/ElementUI/Resources/raw/master/Element%20UI%20Kit_v2.0.sketch"
><
%=
5
></a>
<a
onclick=
"ga('send', 'event', 'ResourceDownload', 'Download', 'Sketch');"
href=
"https://github.com/ElementUI/Resources/raw/master/Element%20UI%20Kit_v2.0.sketch"
><
%=
5
></a>
</div>
</div>
</li>
</li>
<!--<li>-->
<!--<li>-->
...
...
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