Skip to content

Commit

Permalink
gtm
Browse files Browse the repository at this point in the history
  • Loading branch information
abjarna committed Jul 23, 2024
1 parent 55dc68d commit 3828ca6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rit/_templates/search.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{% extends "pydata_sphinx_theme/search.html" %}

{%- block htmltitle -%}
<title>{{ _("Search") }} &ndash; Ritsafn RÚBIK Reykjavíkur</title>

{# >>>>> Setja inn favicon tengla og stillingar fyrir Progressive Web App (PWA), sbr. https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7 #}
<link rel="icon" href="https://rit.rubik.is/_static/favicon/favicon.ico" sizes="48x48">
<link rel="icon" href="https://rit.rubik.is/_static/favicon/icon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="https://rit.rubik.is/_static/favicon/apple-touch-icon.png">
<link rel="manifest" href="https://rit.rubik.is/_static/site.webmanifest">

{# >>>>> Setja inn leiðréttan "title" #}
<title>{{ _("Search") }} &ndash; Ritsafn RÚBIK Reykjavíkur</title>

{# >>>>> Google Tag Manager #}
<script>!function(){"use strict";function l(e){for(var t=e,r=0,n=document.cookie.split(";");r<n.length;r++){var o=n[r].split("=");if(o[0].trim()===t)return o[1]}}function s(e){return localStorage.getItem(e)}function u(e){return window[e]}function d(e,t){e=document.querySelector(e);return t?null==e?void 0:e.getAttribute(t):null==e?void 0:e.textContent}var e=window,t=document,r="script",n="dataLayer",o="KQNTKH24",a="https://sst.rubik.is",i="",c="augyhclc",E="stapeUserId",I="",v="",g=!1;try{var g=!!E&&(m=navigator.userAgent,!!(m=new RegExp("Version/([0-9._]+)(.*Mobile)?.*Safari.*").exec(m)))&&16.4<=parseFloat(m[1]),A="stapeUserId"===E,f=g&&!A?function(e,t,r){void 0===t&&(t="");var n={cookie:l,localStorage:s,jsVariable:u,cssSelector:d},t=Array.isArray(t)?t:[t];if(e&&n[e])for(var o=n[e],a=0,i=t;a<i.length;a++){var c=i[a],c=r?o(c,r):o(c);if(c)return c}else console.warn("invalid uid source",e)}(E,I,v):void 0;g=g&&(!!f||A)}catch(e){console.error(e)}var m=e,E=(m[n]=m[n]||[],m[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),t.getElementsByTagName(r)[0]),I="dataLayer"===n?"":"&l="+n,v=f?"&bi="+encodeURIComponent(f):"",A=t.createElement(r),e=g?"kp"+c:c,n=!g&&i?i:a;A.async=!0,A.src=n+"/"+e+".js?st="+o+I+v+"",null!=(f=E.parentNode)&&f.insertBefore(A,E)}();</script>
{# >>>>> End Google Tag Manager #}

{%- endblock htmltitle -%}

0 comments on commit 3828ca6

Please sign in to comment.