File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,22 +15,24 @@ import { api } from "./lib/api";
1515
1616const router = createRouter ( { routeTree } ) ;
1717
18- api . getMeta ( ) . then ( ( { analytics } ) => {
19- if ( analytics . umami ) {
20- const s = document . createElement ( "script" ) ;
21- s . defer = true ;
22- s . src = `${ analytics . umami . url } /script.js` ;
23- s . dataset . websiteId = analytics . umami . websiteId ;
24- document . head . appendChild ( s ) ;
25- }
26- if ( analytics . livedot ) {
27- const s = document . createElement ( "script" ) ;
28- s . defer = true ;
29- s . src = `${ analytics . livedot . url } /t.js` ;
30- s . dataset . website = analytics . livedot . websiteId ;
31- document . head . appendChild ( s ) ;
32- }
33- } ) ;
18+ if ( ! window . location . pathname . startsWith ( "/embed" ) ) {
19+ api . getMeta ( ) . then ( ( { analytics } ) => {
20+ if ( analytics . umami ) {
21+ const s = document . createElement ( "script" ) ;
22+ s . defer = true ;
23+ s . src = `${ analytics . umami . url } /script.js` ;
24+ s . dataset . websiteId = analytics . umami . websiteId ;
25+ document . head . appendChild ( s ) ;
26+ }
27+ if ( analytics . livedot ) {
28+ const s = document . createElement ( "script" ) ;
29+ s . defer = true ;
30+ s . src = `${ analytics . livedot . url } /t.js` ;
31+ s . dataset . website = analytics . livedot . websiteId ;
32+ document . head . appendChild ( s ) ;
33+ }
34+ } ) ;
35+ }
3436
3537declare module "@tanstack/react-router" {
3638 interface Register {
You can’t perform that action at this time.
0 commit comments