Skip to content

Commit

Permalink
Updated custom header to custom head. Should fix analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavD committed Nov 21, 2023
1 parent 766400b commit 3f6ed99
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 32 deletions.
37 changes: 37 additions & 0 deletions _includes/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<meta property="og:image" content="/images/logos/onnxruntime/ORT_icon_for_light_bg.png" />

<script
type="text/javascript"
src="https://js.monitor.azure.com/scripts/c/ms.analytics-web-3.min.js"
></script>

<script type="text/javascript">
const analytics = new oneDS.ApplicationInsights();
var config = {
instrumentationKey:
'360b0e675e0044398fd28c8bdf711b8e-1fe5434d-ee99-4837-99cc-a3a16462d82d-7262',
channelConfiguration: {
// Post channel configuration
eventsLimitInMem: 50
},
propertyConfiguration: {
// Properties Plugin configuration
env: 'PROD' // Environment can be set to PPE or PROD as needed.
},
webAnalyticsConfiguration: {
// Web Analytics Plugin configuration
//urlCollectQuery:true,
autoCapture: {
scroll: true,
pageView: true,
onLoad: true,
onUnload: true,
click: true,
resize: true,
jsError: true
}
}
};
//Initialize SDK
analytics.initialize(config, []);
</script>
32 changes: 0 additions & 32 deletions _includes/header_custom.html

This file was deleted.

0 comments on commit 3f6ed99

Please sign in to comment.