* 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
9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
/* eslint-disable no-undef */
|
|
export default function ({ route }) {
|
|
if (process.client) {
|
|
googletag.cmd.push(function () {
|
|
googletag.pubads().setTargeting('path', route.path)
|
|
})
|
|
}
|
|
}
|