Logo
Explore Help
Sign In
MrSphay/Modrinth-plus
1
0
Fork 0
You've already forked Modrinth-plus
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
862df1d2dfa6d88e02ee600affbbcac695286bf1
Modrinth-plus/middleware/ads_tracking.js

9 lines
200 B
JavaScript
Raw Normal View History

Change ads provider, and add consent system for advertising (#155) * Add GAM integration & base for GPDR consent * Moved consent to a specific page. * Added functionality to the privacy page, and desactivate tracking if consent is not given. * Added GeoEdge support, and fixed auth issues * Fix actions issue * Fix actions issue, attempt 2 * Added a module for analytics with consent support. * Remove unnecessary function * Add support for runtime config
2021-04-09 04:44:25 +02:00
/* eslint-disable no-undef */
export default function ({ route }) {
if (process.client) {
googletag.cmd.push(function () {
googletag.pubads().setTargeting('path', route.path)
})
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 23ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API