Language packs to paste

On the Tag Manager route the words can come from a variable: the tag’s Text source set to From a variable, and a Language pack variable holding a language pack. The packs below are the published ones, each wrapped the way a Tag Manager variable expects. Paste one in, change the words you want, and pick the variable on the tag.

🏷️ Three things Tag Manager does not say

  • It is a Custom JavaScript variable — Variables → User-Defined → New → Custom JavaScript — not a Constant or a Data Layer variable.
  • It is a function that returns the pack. The function () { return ...; } around the words is what Tag Manager expects, so keep it.
  • The words are edited in place. Change any string between the quotes and save the variable. A key you leave out falls back to the built-in English.

🌍 The packs

Paste one as the variable’s whole value.

Ελληνικά el.gtm.js
function () {
	return {
		"locale": "el",
		"name": "Ελληνικά",
		"texts": {
			"barTitle": "Πολιτική Cookies",
			"barDescription": "Αυτός ο ιστότοπος χρησιμοποιεί cookies. Μέχρι να επιλέξετε, είναι ενεργά μόνο όσα δεν μπορεί να λειτουργήσει χωρίς αυτά. Αποδεχτείτε τα όλα, απορρίψτε τα υπόλοιπα ή ανοίξτε τις ρυθμίσεις για να επιλέξετε ανά κατηγορία.",
			"buttonSettings": "Ρυθμίσεις",
			"buttonSave": "Αποθήκευση",
			"buttonCancel": "Ακύρωση",
			"buttonAcceptAll": "Αποδοχή όλων",
			"buttonRejectAll": "Απόρριψη όλων",
			"modalTitle": "Ρυθμίσεις Cookies",
			"modalDescription": "Επιλέξτε ποια cookies μπορεί να χρησιμοποιεί αυτός ο ιστότοπος. Η Αποθήκευση καταγράφει την επιλογή σας, η Ακύρωση την αφήνει όπως ήταν. Σύμφωνα με τον ευρωπαϊκό γενικό κανονισμό προστασίας δεδομένων (GDPR) και την οδηγία ePrivacy, ένας ιστότοπος πρέπει να έχει τη συγκατάθεσή σας πριν χρησιμοποιήσει οποιοδήποτε cookie πέρα από τα απολύτως απαραίτητα. Αναπτύξτε μια κατηγορία για να δείτε τι καλύπτει.",
			"alwaysOnLabel": "Πάντα Ενεργό",
			"policyLinkLabel": "Πολιτική Απορρήτου",
			"cookieTableHeaderName": "Όνομα Cookie",
			"cookieTableHeaderPurpose": "Σκοπός Cookie",
			"cookieTableHeaderProvenance": "Προέλευση Cookie",
			"cookieTableHeaderDuration": "Διάρκεια Cookie"
		},
		"consents": {
			"strictly_necessary": {
				"title": "Απολύτως απαραίτητα cookies",
				"description": "Αυτά τα cookies είναι απαραίτητα για την περιήγησή σας στον ιστότοπο και τη χρήση των δυνατοτήτων του, όπως η πρόσβαση σε ασφαλείς περιοχές του. Τα cookies που επιτρέπουν στα ηλεκτρονικά καταστήματα να κρατούν τα προϊόντα σας στο καλάθι σας είναι ένα παράδειγμα απολύτως απαραίτητων cookies."
			},
			"preferences_functionality": {
				"title": "Cookies προτιμήσεων",
				"description": "Γνωστά και ως \"cookies λειτουργικότητας\", αυτά τα cookies επιτρέπουν σε έναν ιστότοπο να θυμάται τις επιλογές που έχετε κάνει στο παρελθόν, όπως ποια γλώσσα προτιμάτε."
			},
			"statistics_performance": {
				"title": "Cookies στατιστικών",
				"description": "Γνωστά και ως \"cookies απόδοσης\", αυτά τα cookies συλλέγουν πληροφορίες σχετικά με τον τρόπο χρήσης ενός ιστότοπου, όπως ποιες σελίδες επισκεφτήκατε και σε ποιους συνδέσμους κάνατε κλικ."
			},
			"marketing_advertising": {
				"title": "Cookies εμπορικής προώθησης",
				"description": "Αυτά τα cookies παρακολουθούν τη δραστηριότητά σας στο διαδίκτυο για να βοηθήσουν τους διαφημιστές να παρέχουν πιο σχετικές διαφημίσεις ή να περιορίσουν τον αριθμό των φορών που βλέπετε μια διαφήμιση. Αυτά τα cookies μπορούν να μοιραστούν αυτές τις πληροφορίες με άλλους οργανισμούς ή διαφημιστές. Είναι μόνιμα και σχεδόν πάντα προέλευσης τρίτων."
			}
		}
	};
}
English en.gtm.js
function () {
	return {
		"locale": "en",
		"name": "English",
		"texts": {
			"barTitle": "Cookie Policy",
			"barDescription": "This site uses cookies. Until you choose, only the ones the site cannot run without are on. Accept them all, reject the rest, or open the settings to choose category by category.",
			"buttonSettings": "Settings",
			"buttonSave": "Save",
			"buttonCancel": "Cancel",
			"buttonAcceptAll": "Accept All",
			"buttonRejectAll": "Reject All",
			"modalTitle": "Cookie Settings",
			"modalDescription": "Choose which cookies this site may use. Save stores your choice, Cancel leaves it as it was. Under the European general data protection regulation (GDPR) and the ePrivacy directive, a site must have your consent before it uses any cookie besides the strictly necessary ones. Expand a category to read what it covers.",
			"alwaysOnLabel": "Always On",
			"policyLinkLabel": "Privacy Policy",
			"cookieTableHeaderName": "Cookie Name",
			"cookieTableHeaderPurpose": "Cookie Purpose",
			"cookieTableHeaderProvenance": "Provenance",
			"cookieTableHeaderDuration": "Duration"
		},
		"consents": {
			"strictly_necessary": {
				"title": "Strictly Necessary Cookies",
				"description": "These cookies are essential for you to browse the website and use its features, such as accessing secure areas of the site. Cookies that allow web shops to hold your items in your cart while you are shopping online are an example of strictly necessary cookies."
			},
			"preferences_functionality": {
				"title": "Preferences Cookies",
				"description": "Preference cookies enable a website to remember information that changes the way the website behaves or looks, such as your preferred language or the region that you are in."
			},
			"statistics_performance": {
				"title": "Statistics Cookies",
				"description": "Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously."
			},
			"marketing_advertising": {
				"title": "Marketing Cookies",
				"description": "Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers."
			}
		}
	};
}

⚙️ Pick it on the tag

Set Text source to From a variable and choose the variable as the Language pack variable. To switch wording by page, make a Lookup Table keyed on the page’s language with one of these variables per row, and pick the table instead.

🚀 If you do not need to change a word

Set Text source to A published language pack and pick the language. The tag loads that pack from the CDN at the same version as the banner, so there is nothing to paste and the words move with each release. If the pack does not load, the banner keeps its built-in English and says so on the console. It is the third step of Use Google Tag Manager.