Diffy documentation
  • Features
    • 👋Welcome
    • Mask & Exclude
    • JavaScript snippets
    • HTTP headers
    • Cookies
    • CSS overrides
    • Mock content
    • Dealing with Dynamic Elements
      • Freeze Carousels / Sliders
      • Cookies Policy Popups
    • Configure project from YAML file
    • Zapier integration (JIRA, Trello, Basecamp integrations)
    • Bypass protection Cloudfront, Akamai, Incapsula
      • Bypass Akamai protection
      • Bypass Imperva Incapsula protection
    • Tags
    • Local development
      • DDEV add-on
      • Lando integration
      • Standalone docker container
      • Ngrok
  • Automation
    • 💡Overview
    • GitHub Pantheon CircleCI
    • GitHub Pantheon GitHub Actions
    • GitHub Tugboat
  • Tutorials
    • Comparison review
Powered by GitBook
On this page
  • Google Analytics
  • Native device detection
  1. Features

HTTP headers

Avoid Diffy hits reflected in your analytics, device identification.

PreviousJavaScript snippetsNextCookies

Last updated 1 year ago

You can set up HTTP headers for Diffy workers. We have a few cases when it is really useful.

Google Analytics

If your site doesn't get much traffic Diffy's scans will be noticeable. To avoid that you can set

User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

Native device detection

If your layouts use device detection (instead of screen width) you can mimic different devices with User-Agent headers as well. There is a .

great collection of devices/headers in puppeteer project