You've already forked AstralRinth
forked from didirus/AstralRinth
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
This commit is contained in:
8
middleware/ads_tracking.js
Normal file
8
middleware/ads_tracking.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/* eslint-disable no-undef */
|
||||
export default function ({ route }) {
|
||||
if (process.client) {
|
||||
googletag.cmd.push(function () {
|
||||
googletag.pubads().setTargeting('path', route.path)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,9 @@ export default async function (context) {
|
||||
context.app.$cookies.set('auth-token', context.route.query.code, {
|
||||
secure: true,
|
||||
sameSite: 'Strict',
|
||||
maxAge: 60 * 60 * 2, // 2 hours
|
||||
httpOnly: true,
|
||||
path: '/',
|
||||
})
|
||||
|
||||
await context.store.dispatch('auth/fetchUser', {
|
||||
|
||||
Reference in New Issue
Block a user