зеркало из https://github.com/mozilla/bedrock.git
customize tracking on firefox pages and track download buttons (bug 738412)
This commit is contained in:
Родитель
266ca3cd03
Коммит
97af3629e5
|
@ -80,3 +80,7 @@
|
|||
{% block site_js %}
|
||||
{{ js('firefox') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block webtrends %}
|
||||
{% include "includes/webtrends-fx.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -20,7 +20,18 @@ function init_download_links() {
|
|||
$('.download-link').each(function() {
|
||||
var el = $(this);
|
||||
var link = el.data('direct-link');
|
||||
el.click(function() { trigger_ie_download(link); });
|
||||
el.click(function() {
|
||||
dcsMultiTrack('DCS.dcssip',
|
||||
'www.mozilla.org',
|
||||
'DCS.dcsuri',
|
||||
window.location.pathname,
|
||||
'WT.ti', 'Link: Get Firefox',
|
||||
'WT.dl', 99,
|
||||
'WT.nv', 'Content',
|
||||
'WT.ac', 'Download Firefox');
|
||||
|
||||
trigger_ie_download(link);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -49,4 +60,4 @@ function init_platform_imgs() {
|
|||
$(document).ready(function() {
|
||||
init_download_links();
|
||||
init_platform_imgs();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<script src="/media/js/webtrends.js" type="text/javascript"></script>
|
||||
<!-- Warning: The two script blocks below must remain inline. Moving them to an external -->
|
||||
<!-- JavaScript include file can cause serious problems with cross-domain tracking. -->
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var _tag=new WebTrends({"dcsid":"dcsf9nqmj10000clgc14f05rf_2u7t","rate":50,"fpcdom":"mozilla.org"});
|
||||
_tag.dcsGetId();
|
||||
//]]>
|
||||
</script>
|
||||
<script>
|
||||
//<![CDATA[
|
||||
|
||||
_tag.dcsCollect();
|
||||
//]]>
|
||||
</script>
|
||||
<noscript>
|
||||
<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="//statse.webtrendslive.com/dcso6de4r0000082npfcmh4rf_4b1e/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.6.2"/></div>
|
Загрузка…
Ссылка в новой задаче