Skip to content

Commit

Permalink
Update utm_helper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shanjingheng committed Apr 15, 2024
1 parent 29ffe04 commit 8fc5eed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/.vuepress/public/utm_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ function setCookie(name, value, days, domain) {
document.cookie = name + "=" + encodeURIComponent(value) + expires + "; domain=." + domain + "; path=/";
}

window.onload = getUTMParametersAndSetCookie;
window.addEventListener('load', function() {
getUTMParametersAndSetCookie;
});

0 comments on commit 8fc5eed

Please sign in to comment.