Skip to content

Commit

Permalink
Add WAP codes, wapLocalCode in base.html for analytics
Browse files Browse the repository at this point in the history
Add WAP codes, wapLocalCode in base.html for analytics
@mvincerx - author
  • Loading branch information
mvincerx authored Jun 27, 2024
1 parent 357735d commit 93d9e1d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/docs/_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

{% block head %}
<head>
<script async src=""></script>
<script defer type="text/javascript" src="https://www.intel.com/content/dam/www/global/wap/performance-config.js" >
</script>

<link rel="stylesheet" type="text/css" href="_static/styles.css" />
<meta charset="UTF-8">
Expand Down Expand Up @@ -48,8 +49,14 @@
</head>
{% endblock %}
<body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DT7D3YR0LH">
<script type="text/javascript">
var wapLocalCode = 'us-en'; // configured 27/06/2024
var wapSection = “oneapi-samples”; // configured 27/06/2024
// Load TMS
(function () {
var url = 'https://www.intel.com/content/dam/www/global/wap/tms-loader.js'; // WAP file URL
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = url;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();
</script>
<div class="flexbox">
{% block content %}
Expand Down

0 comments on commit 93d9e1d

Please sign in to comment.