Skip to content

Commit

Permalink
init after plugin is added
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Oct 15, 2024
1 parent e4e08ac commit 97cc0a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/js/amplitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ function loadAsync(src, callback) {
document.getElementsByTagName("head")[0].appendChild(script);
}

window.amplitude.init("7652218546e8f6cc3d045e43a68830f6", {
defaultTracking: true,
});

loadAsync(
"https://cdn.amplitude.com/libs/plugin-session-replay-browser-1.6.24-min.js.gz",
function () {
var sessionReplayTracking = window.sessionReplay.plugin({ sampleRate: 1 });
window.amplitude.add(sessionReplayTracking).promise;

window.amplitude.init("7652218546e8f6cc3d045e43a68830f6", {
defaultTracking: true,
});
}
);

0 comments on commit 97cc0a9

Please sign in to comment.