Skip to content

Commit

Permalink
add UTM to iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Aug 26, 2024
1 parent d5def96 commit c6be142
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/.vuepress/components/sample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default {
url.searchParams.append("room", `needle_docs_${id}`);
}
const currentUrl = typeof window !== "undefined" ? new URL(window.location.href) : null;
url.searchParams.append("hideClose", "");
url.searchParams.append("utm_source", "needle_docs");
url.searchParams.append("utm_content", currentUrl?.toString() || "");
this.sanitizedUrl = url.toString();
}
}
Expand Down

0 comments on commit c6be142

Please sign in to comment.