mirror of https://github.com/ElemeFE/element
chore: update ga tracking (#14560)
* chore: update ga tracking * chore: update development mockpull/14569/head
parent
e52c7e06df
commit
608f1ba33f
|
@ -3,6 +3,7 @@
|
||||||
"mocha": true
|
"mocha": true
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
|
"ga": true,
|
||||||
"expect": true,
|
"expect": true,
|
||||||
"sinon": true
|
"sinon": true
|
||||||
},
|
},
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 @@
|
||||||
<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>-->
|
||||||
|
|
Loading…
Reference in New Issue