Skip to content

Commit abcd825

Browse files
committed
fix analytics
1 parent 250f5f0 commit abcd825

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎_includes/inline-av-player.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
var extraTime = 0;
5757
window.lastLogTime = Date.now();
5858
function onPlayerStateChange(event) {
59-
{%- if jekyll.environment == 'production' and site.google_analytics %}
59+
{%- if jekyll.environment == 'production' %}
6060
if (event.data == YT.PlayerState.PLAYING) {
6161
if (!window.loggingInterval) {
6262
window.lastLogTime = Date.now();

‎_layouts/default.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<link rel="alternate" type="application/atom+xml" title="{{ page.rss_title | default: page.title }}" href="{{ page.rss_url }}" />
4545
{%- endif -%}
4646
{%- endcase -%}
47-
{%- if jekyll.environment == 'production' and site.google_analytics -%}
47+
{%- if jekyll.environment == 'production' -%}
4848
<script>
4949
window.WEBSITE_SECTION = '{{ page.section }}';
5050
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || localStorage.getItem("doNotTrack") == "1") || localStorage.getItem('TRACK') == "1") {

0 commit comments

Comments
 (0)