Skip to content

Commit

Permalink
Merge pull request #308 from akvo/develop
Browse files Browse the repository at this point in the history
[#257] Implement piwik for prod
  • Loading branch information
wayangalihpratama authored Mar 18, 2024
2 parents 51fd721 + 4792b5b commit fbc0ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
<script type="text/javascript">
const origin = window?.location?.origin;
const ID =
origin?.includes("test") && origin?.includes("localhost")
origin?.includes("test") || origin?.includes("localhost")
? "418c8745-6f9d-4e93-946c-ef65731f366d"
: "418c8745-6f9d-4e93-946c-ef65731f366d";
: "9d53ab3a-14de-4429-85e9-4afa6f570013";
(function (window, document, dataLayerName, id) {
(window[dataLayerName] = window[dataLayerName] || []),
window[dataLayerName].push({
Expand Down Expand Up @@ -110,9 +110,9 @@
document.addEventListener("DOMContentLoaded", function () {
const origin = window?.location?.origin;
const ID =
origin?.includes("test") && origin?.includes("localhost")
origin?.includes("test") || origin?.includes("localhost")
? "418c8745-6f9d-4e93-946c-ef65731f366d"
: "418c8745-6f9d-4e93-946c-ef65731f366d";
: "9d53ab3a-14de-4429-85e9-4afa6f570013";
// Get the noscript element
var noscriptElement = document.querySelector("noscript");
// Check if the noscript element exists
Expand Down

0 comments on commit fbc0ffd

Please # to comment.