Find file History
Latest commit 40dd0fe Jun 18, 2017
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
assets app insights Jun 12, 2017
config app insights Jun 12, 2017
sharepoint/assets app insights Jun 12, 2017
src/extensions/extensionsInjectAppInsights app insights Jun 12, 2017
.editorconfig app insights Jun 12, 2017
.gitattributes app insights Jun 12, 2017
.gitignore app insights Jun 12, 2017
.npmignore app insights Jun 12, 2017
.yo-rc.json app insights Jun 12, 2017
README.md Sample polishing Jun 18, 2017
gulpfile.js app insights Jun 12, 2017
package-lock.json app insights Jun 12, 2017
package.json app insights Jun 12, 2017
tsconfig.json app insights Jun 12, 2017

README.md

Injecting Javascript with Sharepoint Framework Extensions (Preview) - Azure Application Insights

Summary

Sample SharePoint Framework extension projects injecting Javascript code to enable Azure App Insights monitoring and statistics.

Application Insights Customizer Customizer

Used SharePoint Framework Version

SPFx Extensions Dev Preview

Applies to

Solution

Solution Author(s)
js-application-appinsights Luis Valencia - MVP

Version history

Version Date Comments
1.0 June 11, 2017 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp serve

Features

This extension injects javascript needed to track pages in Sharepoint Online with Azure Application Insights

Do not forget to change your instrumentation key.

Debug URL for testing

Here's a debug URL for testing around this sample.

?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&customActions={"7c5a85c1-8b1e-4370-8198-642908faee60":{"location":"ClientSideExtension.ApplicationCustomizer","properties":{"testMessage":"Hello as property!"}}}