Does your site hijack the back button? How to check
Google treats back button hijacking as spam, even when an ad or widget script does it. A two-minute test, a console check, and what I measured.

Open a fresh tab, search for your business, click your result, wait ten seconds, scroll a little, then press Back once. If you're on the search results again, your page passed. If you end up on a page you never opened, or Back seems to do nothing, something on the page is changing your visitors' browser history.
Google calls that back button hijacking. It became a named violation of Google's spam policies in April 2026, with enforcement from June 15, 2026. Pages that do it can get a manual action or an automated demotion. On November 23, 2026, Google added an FAQ to the policy, and its first answer is the one that matters for most small businesses.
Can an ad or widget script get your site in trouble
Yes. Google's announcement says some cases come from "the site's included libraries or advertising platform", and asks site owners to find and remove that code. The new FAQ adds that you can keep working with ad platforms and loading their code. Google acts only on pages that show the behavior.
That means a script you added and forgot about counts the same as code you wrote. The FAQ also says:
- The policy covers Google Discover, which is part of Google Search.
- It applies when the visitor came from somewhere else, such as social media, as long as it happens in a browser.
- Opening an app ("open in app") is outside the policy.
- Anyone can report a page through Google's spam report.
What the hijack looks like in a test
A page can add entries to your browser history with one line of JavaScript: history.pushState() "adds an entry to the browser's session history stack". Many sites use it for ordinary reasons, such as changing the address when they load new content without a reload. A hijack uses it to put something between the visitor and the page they came from.
I built two small pages that do it the two common ways, plus a plain page, and ran them in Chrome 157 through Playwright, a browser automation library. Each test opened a starting page, clicked a link to the test page, clicked and scrolled, waited four seconds, then went Back once:
| Page | Entries it added | History length after arriving | Where one Back went |
|---|---|---|---|
| Plain page | none | 3 | the starting page |
| Adds one entry, then redirects anyone who goes Back | 1 | 4 | an "offer" page I never opened |
| Adds three copies of itself | 3 | 6 | the same page, so Back looked broken |
| tavi-ai.com home, a Note, the tools page | none | 3 | the starting page |
My own site passed, which I expected: it runs no ads, popups or chat widgets. The test pages show the two symptoms to look for. One sends people somewhere new. The other makes Back do nothing until someone presses it several times.
My test pressed Back through automation, which isn't quite the same as a person pressing the button. Treat the table as a picture of the two patterns, and do the manual test too.
How to check your own pages
- Do the test from the top of this page on your home page and your three busiest pages, on a phone and on a computer.
- For a second check, open a new tab, go to any other page, open the browser's developer console (F12 in Chrome), and type
history.length. Click through to your page and type it again after ten seconds. It should be exactly one higher. More than one means something on your page added entries. - If either check fails, list the scripts your page loads. My note on listing what a website runs shows how. Turn off ad, popup, chat and "recommended content" tools one at a time and test again until Back works.
- When you find the script, remove it or ask its maker for a setting that turns the behavior off. Then test again on a phone.
If you'd like to automate the check, the script I used is a short Playwright file: start a page, click to yours, wait, page.goBack(), compare the URL. My guide to rendering a web page in headless Chrome covers the setup.