[object Object]

← back to Customdigitalmurals

TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)

b6746c54a018f08b49c5ea6857b4e5e3a0cd3a0e · 2026-09-09 16:02:03 -0700 · Steve

Files touched

Diff

commit b6746c54a018f08b49c5ea6857b4e5e3a0cd3a0e
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Sep 9 16:02:03 2026 -0700

    TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
---
 server.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server.js b/server.js
index 86c3deb..11f4753 100644
--- a/server.js
+++ b/server.js
@@ -73,6 +73,7 @@ const DW_BASE = 'https://designerwallcoverings.com';
 const GA4_ID  = process.env.GA4_MEASUREMENT_ID || '';
 
 const app = express();
+app.get('/ads.txt', (req, res) => res.type('text/plain').send('google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0'));
 
 // Security + cache headers
 app.use((_req, res, next) => {
@@ -342,6 +343,7 @@ function headCommon(title, desc, canonical='', ogImage='') {
   return `<!doctype html>
 <html lang="en">
 <head>
+    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width,initial-scale=1">
 <!-- Google tag (gtag.js) — GA4 G-P6Z6JNS2MM -->
@@ -492,6 +494,7 @@ body{background:var(--bg);color:var(--ink);font-family:'Space Grotesk',system-ui
 
 function headerHtml(active) {
   return `<header class="site-header">
+    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
   <a class="brand" href="/">Custom Digital Murals</a>
   <nav>
     <a href="/" ${active==='home'?'style="color:var(--ink)"':''}>Shop</a>

← 62daa96 GA4: inject gtag G-P6Z6JNS2MM into SSR head  ·  back to Customdigitalmurals  ·  Keep one AdSense loader in inline page templates 8a2f80e →