change page title containing supplier_code to enable google analytics tracking (untested)

This commit is contained in:
zino
2021-05-28 12:15:50 +02:00
parent 265f0c162a
commit 9f94f5ab25
6 changed files with 5 additions and 3272 deletions

View File

@@ -49,6 +49,7 @@ export function initSendInputsWithValue(inE: any) {
const data: I.Message = JSON.parse(inE.data);
config.state.inputsWithValue = data.message;
UI.changeVenueImage();
UI.changeSiteTitle();
Communication.sendEventToParent("child_init_needVenueXML");
}

View File

@@ -22,6 +22,10 @@ export function setOptionSelect(inSeatmapListing: I.Seatmap[], inId: string): vo
}
}
export function changeSiteTitle(): void {
document.title += ` ${config.state.inputsWithValue?.supplier_code}`;
}
export function setEventInfo(inEventInfo: I.EventInfo): void {
const inputsWithValue = config.state.inputsWithValue!;