Paste the script in your site
You have the script on your clipboard from Step 1. Now we’ll drop it into the <head> section of your site. This needs to happen on every page, but if your site uses a shared header template (which most do), you only edit one file.
2.1 — Open the file with your <head>
Find the file that holds your site’s shared header. The name depends on how your site is built:
- Hand-coded HTML —
index.html - PHP-based site —
header.php - Static-site generator (Astro, Hugo, Jekyll) —
layout.htmlorbaseof.html
Open the file in your editor of choice (VS Code, Sublime, Atom, etc.). The next step shows exactly what to paste and where.
2.2 — Paste just above </head>
The script should be the last thing inside <head>, right before the closing tag. After pasting, the file looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Acme Skincare</title>
<!-- 👇 Paste the AdsPing script just above </head> -->
<script async src="https://api.adsping.io/pb.js?id=YOUR_PIXEL_ID"></script>
</head>
<body>
<!-- … rest of your page … -->
</body>
</html>Your real script will already have your actual Pixel ID in it — the YOUR_PIXEL_ID placeholder above is just for illustration. After pasting, save the file.
2.3 — Upload / deploy
Push the change so it’s live on your site (FTP, hosting panel, or git-based deploy — whatever workflow you normally use).
2.4 — Verify it’s loading
Open your site in the browser. Open DevTools (right-click → Inspect) → Network tab → refresh the page. Look for a row called pb.js with a Status 200.
Don’t see pb.js?
View the page source (Ctrl+U / Cmd+Opt+U). The script tag should be visible inside <head>. If not, the file change didn’t deploy. Hard-refresh (Ctrl+Shift+R / Cmd+Shift+R) to bust cached HTML.
✓ The script is on your site.
Next, we’ll connect your Google Ads account so AdsPing knows where to send conversions.
Need help? Email us and we’ll do this together on a quick call.