Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ document.querySelectorAll('.copy-btn').forEach(function (btn) {
var rejectBtn = document.getElementById('consent-reject');

function loadGTM() {
// Update consent state
// Update consent state — grant all signals declared in the default block,
// otherwise the un-granted ad signals stay denied forever (0% consent rate).
gtag('consent', 'update', {
'analytics_storage': 'granted'
'analytics_storage': 'granted',
'ad_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted'
});

// Inject GTM script
Expand Down