Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit 8c0a1dd

Browse files
ptsavdarLaurentGruber
authored andcommitted
Fixed website analytics issue (#2502)
1 parent f4cd884 commit 8c0a1dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugin/website/Resources/views/Website/view.html.twig

+5-5
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
</div>
7373
</footer>
7474
{% endif %}
75-
{% if options.analyticsProvider=="xiti" and options.analyticsId is not empty %}
75+
{% if options.analyticsProvider=="xiti" and options.analyticsAccountId is not empty %}
7676
<a href="http://www.xiti.com/xiti.asp?s=<%=webSite.options.analyticsAccountId%>" title="WebAnalytics" target="_top">
7777
<script type="text/javascript">
7878
//<!--
79-
Xt_param = 's={{ options.analyticsId }}&p={{ _resource.name~" - "~currentPage.title }}';
79+
Xt_param = 's={{ options.analyticsAccountId }}&p={{ _resource.name~" - "~currentPage.title }}';
8080
try {Xt_r = top.document.referrer;}
8181
catch(e) {Xt_r = document.referrer; }
8282
Xt_h = new Date();
@@ -89,7 +89,7 @@
8989
//-->
9090
</script>
9191
<noscript>
92-
<img width="39" height="25" src="http://logv17.xiti.com/hit.xiti?s={{ options.analyticsId }}&p={{ _resource.name~" - "~currentPage.title }}" alt="WebAnalytics" />
92+
<img width="39" height="25" src="http://logv17.xiti.com/hit.xiti?s={{ options.analyticsAccountId }}&p={{ _resource.name~" - "~currentPage.title }}" alt="WebAnalytics" />
9393
</noscript></a>
9494
{% endif %}
9595
</div>
@@ -119,14 +119,14 @@
119119
})();
120120
</script>
121121

122-
{% if options.analyticsProvider=="google" and options.analyticsId is not empty %}
122+
{% if options.analyticsProvider=="google" and options.analyticsAccountId is not empty %}
123123
<script>
124124
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
125125
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
126126
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
127127
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
128128
129-
ga('create', '{{ options.analyticsId }}', 'auto');
129+
ga('create', '{{ options.analyticsAccountId }}', 'auto');
130130
ga('send', 'pageview');
131131
</script>
132132
{% endif %}

0 commit comments

Comments
 (0)