HTML source monitoring
Some changes never show in the visible text: a new tracking script, a changed canonical tag, an edited meta description. A source-level watch compares the HTML itself.
Text view versus source view
By default Alertcat converts the page to readable text before comparing. That hides most markup noise, which is what you want for content. For source monitoring you want the opposite: compare the HTML as delivered.
In the watch's filter settings, choose to keep the HTML rather than convert it to text, and use selectors to narrow the source to the part you care about, such as the head section or one script tag.
What people watch in the source
Meta and canonical tags
Title, description, robots and canonical changes.
Third-party scripts
A new script URL can mean a new tracker or a compromise.
Structured data
Product, price and availability data embedded in the page.
Links and assets
Changed download links and image paths.
Set up a source watch
- Create a watch with the page URL.
- In the filters, keep HTML instead of converting to text.
- Add a CSS selector such as head or a specific script, or an XPath expression, to limit the comparison to that part.
- Use the ignore filters or regex extract to drop values that always change, such as nonce attributes, build hashes or timestamps.
- Save, wait for the first snapshot and open the preview to confirm it contains the markup you expect.
Keeping source watches quiet
Raw HTML often contains tokens that change on every request. Find them in the first two diffs and remove them with a regex or an ignore rule. Without this a source watch can alert on every check. The false alerts page lists the common causes.
Alertcat sees what the server sends. Markup created later by JavaScript is not part of the source it fetches.
Frequently asked questions
Can I watch only the head of the page?
Yes. Use a CSS selector such as head so the rest of the document is ignored.
Does it detect JavaScript file changes?
It detects a change in the script tag or URL. To watch the file itself, add its URL as its own watch.
Can I get the HTML diff in the alert?
Yes. The added and removed lines are available through the diff tokens. See notification templates.
Why does the diff show hashes changing?
Many sites add build hashes or nonces to the source. Add a regex or ignore rule for them.
Related
Watch the pages that matter
Alertcat is in early access. Tell us what you want to watch and we will set up your team.