From 16891c219e26556a2b9ee3037fd7f4bc2671217b Mon Sep 17 00:00:00 2001 From: Meike Date: Thu, 16 Nov 2023 15:23:51 +0100 Subject: [PATCH] improved buttons: otteranalystics --- inst/tutorials/Grundlagen/Grundlagen.Rmd | 19 ++++- inst/tutorials/Grundlagen/Grundlagen.html | 99 +++++++++++++---------- 2 files changed, 72 insertions(+), 46 deletions(-) diff --git a/inst/tutorials/Grundlagen/Grundlagen.Rmd b/inst/tutorials/Grundlagen/Grundlagen.Rmd index 9d8e659..c851d68 100644 --- a/inst/tutorials/Grundlagen/Grundlagen.Rmd +++ b/inst/tutorials/Grundlagen/Grundlagen.Rmd @@ -64,11 +64,23 @@ $(document).ready(function() { }); $("button[data-i18n-attr-title='button.submitanswertitle']").on("click", function(event) { - _paq.push(['trackEvent', 'Click', 'Button', "Submit Answer"]); + _paq.push(['trackGoal', 2]); }); $("button[data-i18n-attr-title='button.runcodetitle']").on("click", function(event) { - _paq.push(['trackEvent', 'Click', 'Button', "Run Code"]); + _paq.push(['trackGoal', 1]); + }); + + $("button[data-i18n-attr-title='button.solutiontitle']").on("click", function(event) { + _paq.push(['trackGoal', 3]); + }); + + $("button[data-i18n-attr-title='button.hinttitle']").on("click", function(event) { + _paq.push(['trackGoal', 4]); + }); + + $(".tutorial-question-container button").parent().on("click", function(event) { + _paq.push(['trackGoal', 5]); }); }); @@ -78,12 +90,13 @@ $(document).ready(function() { _paq.push(["setRequestMethod", "POST"]); _paq.push(['enableHeartBeatTimer', 5]); _paq.push(['disableAlwaysUseSendBeacon']); + _paq.push(["setDoNotTrack", false]); _paq.push(["setDomains", ["*.otter.uni-frankfurt.de", "*.otter-test.uni-frankfurt.de", "127.0.0.1"]]); //_paq.push(["setCookieDomain", "*.otter.uni-frankfurt.de"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { - var u="https://otter-test.uni-frankfurt.de/otterusers/"; + var u="https://otter.uni-frankfurt.de/otterusers/"; _paq.push(['setTrackerUrl', u+'m.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; diff --git a/inst/tutorials/Grundlagen/Grundlagen.html b/inst/tutorials/Grundlagen/Grundlagen.html index 6daf5ed..6e15585 100644 --- a/inst/tutorials/Grundlagen/Grundlagen.html +++ b/inst/tutorials/Grundlagen/Grundlagen.html @@ -161,11 +161,23 @@ }); $("button[data-i18n-attr-title='button.submitanswertitle']").on("click", function(event) { - _paq.push(['trackEvent', 'Click', 'Button', "Submit Answer"]); + _paq.push(['trackGoal', 2]); }); $("button[data-i18n-attr-title='button.runcodetitle']").on("click", function(event) { - _paq.push(['trackEvent', 'Click', 'Button', "Run Code"]); + _paq.push(['trackGoal', 1]); + }); + + $("button[data-i18n-attr-title='button.solutiontitle']").on("click", function(event) { + _paq.push(['trackGoal', 3]); + }); + + $("button[data-i18n-attr-title='button.hinttitle']").on("click", function(event) { + _paq.push(['trackGoal', 4]); + }); + + $(".tutorial-question-container button").parent().on("click", function(event) { + _paq.push(['trackGoal', 5]); }); }); @@ -175,12 +187,13 @@ _paq.push(["setRequestMethod", "POST"]); _paq.push(['enableHeartBeatTimer', 5]); _paq.push(['disableAlwaysUseSendBeacon']); + _paq.push(["setDoNotTrack", false]); _paq.push(["setDomains", ["*.otter.uni-frankfurt.de", "*.otter-test.uni-frankfurt.de", "127.0.0.1"]]); //_paq.push(["setCookieDomain", "*.otter.uni-frankfurt.de"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { - var u="https://otter-test.uni-frankfurt.de/otterusers/"; + var u="https://otter.uni-frankfurt.de/otterusers/"; _paq.push(['setTrackerUrl', u+'m.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; @@ -5129,16 +5142,16 @@

R Chunk (freies Üben)

@@ -5158,17 +5171,17 @@

R Chunk (freies Üben)

@@ -5408,16 +5421,16 @@

R Chunk (freies Üben)

@@ -5436,22 +5449,22 @@

R Chunk (freies Üben)

@@ -8090,16 +8103,16 @@

R Chunk (freies Üben)

@@ -8153,22 +8166,22 @@

R Chunk (freies Üben)