Skip to content

Commit 5212276

Browse files
authored
doc: add template to enable collection of analytics data (#177)
* add template to enable collection of analytics data Signed-off-by: Benjamin Fitch <[email protected]> * doc: add condition to prevent a github-pages fork from generating analytics data Signed-off-by: Benjamin Fitch <[email protected]>
1 parent 7c24bc6 commit 5212276

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/_templates/layout.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends "!layout.html" %}
2+
{% block extrahead %}
3+
<script type="text/javascript">
4+
// Configure TMS settings
5+
var wapLocalCode = 'us-en'; // Dynamically set per localized site; see mapping table for values
6+
var wapSection = "oneapi-mkl"; // WAP team will give you a unique section for your site
7+
// Load TMS
8+
if (document.location.href.contains("oneapi-src.github.io")) {
9+
(function () {
10+
var url = 'https://www.intel.com/content/dam/www/global/wap/tms-loader.js'; // WAP file URL
11+
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = url;
12+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
13+
})();
14+
}
15+
</script>
16+
{% endblock %}
17+
<!-- any other content blocks -->
18+
<!--...-->

0 commit comments

Comments
 (0)