mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
[ads] GTM
This commit is contained in:
parent
d522ed5dd3
commit
07a0b712d7
@ -63,6 +63,7 @@
|
||||
this.confirmAge();
|
||||
|
||||
this.loadAds();
|
||||
this.loadGTM();
|
||||
},
|
||||
methods: {
|
||||
async confirmAge() {
|
||||
@ -81,7 +82,17 @@
|
||||
if (!this.adsEnabled) { return; }
|
||||
|
||||
await this.$loadScript('adsense', `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8518361481036191`);
|
||||
}
|
||||
},
|
||||
async loadGTM() {
|
||||
if (!this.adsEnabled) { return; }
|
||||
|
||||
await this.$loadScript('gtm', 'https://www.googletagmanager.com/gtag/js?id=G-TDJEP12Q3M');
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-TDJEP12Q3M');
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
adsEnabled() {
|
||||
|
@ -962,6 +962,9 @@ privacy:
|
||||
plausible: >
|
||||
We use <strong>Plausible</strong> to analyse traffic on the website. Such data has no relation to your username, and your IP is anonymised.
|
||||
You can read their privacy policy {https://plausible.io/privacy=<strong>here</strong>}.
|
||||
gtm: >
|
||||
We use <strong>Google Tag Manager</strong> to analyse traffic on the website. Such data has no relation to your username.
|
||||
You can read their privacy policy {https://support.google.com/tagmanager/answer/9323295=<strong>here</strong>}.
|
||||
arc: >
|
||||
We use <strong>arc.io</strong> to cover the costs of website maintenance without introducing ads.
|
||||
You can read more about them and their privacy policy
|
||||
|
@ -1100,6 +1100,9 @@ privacy:
|
||||
plausible: >
|
||||
We use <strong>Plausible</strong> to analyse traffic on the website. Such data has no relation to your username, and your IP is anonymised.
|
||||
You can read their privacy policy {https://plausible.io/privacy=<strong>here</strong>}.
|
||||
gtm: >
|
||||
We use <strong>Google Tag Manager</strong> to analyse traffic on the website. Such data has no relation to your username.
|
||||
You can read their privacy policy {https://support.google.com/tagmanager/answer/9323295=<strong>here</strong>}.
|
||||
arc: >
|
||||
We use <strong>arc.io</strong> to cover the costs of website maintenance without introducing ads.
|
||||
You can read more about them and their privacy policy
|
||||
|
Loading…
x
Reference in New Issue
Block a user