PageSourceSearch

https://www.visitvancouverwa.com/includes/public/managed/v_c8155e1…/common/virtuals/js/shared_header.js

js visitvancouverwa.com collected 2026-09-24 19:46:39 UTC 731 bytes, 23 lines download raw bytes

1// This file will be run in the header on every page.
2// It should be used for content that relates
3// to your site as a whole, it should not be used for
4// plugin-specific js
5
6require(["site_gtm"], function(gtm) {
7	// site_gtm triggers the init of the library, binding dom events
8	// then we track the primary pageview
9	gtm.sendEvents({
10		tClient_pageview : {},
11		tCore_pageview : {}
12	});
13
14	// Insert self-referencing canonical tag
15	let canonicalLink = document.querySelector('link[rel="canonical"]');
16	if (!canonicalLink) {
17		let link = document.createElement('link');
18		link.rel = "canonical";
19		link.href = document.location.origin + document.location.pathname;
20		document.head.appendChild(link);
21	}
22	
23});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.