Skip to content

Commit

Permalink
Update injectScript.js (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuniu-ms authored Jan 20, 2024
1 parent 846cc6d commit a82c8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/github-page-script-injection/injectScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const scriptFilePath = path.join(__dirname, '../applicationinsights-web-snippet/
let scriptContent = fs.readFileSync(scriptFilePath, 'utf8');

// Replace the placeholder string with the actual connection string
const connectionString = 'InstrumentationKey=814a172a-92fd-4950-9023-9cf13bb65696;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/';
const connectionString = 'InstrumentationKey=1ae9e7ce-18f1-4e14-8fc0-acbf0ed28895;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/';
scriptContent = scriptContent.replace('YOUR_CONNECTION_STRING', connectionString);
scriptContent = `<script type="text/javascript">${scriptContent}</script>`;

Expand Down

0 comments on commit a82c8e5

Please sign in to comment.