# Web Traffic Boots (`hung.ad4gate/web-traffic-boots`) Actor

Generate realistic web traffic for Google Analytics (GA) with sophisticated bot detection avoidance and human-like behavior simulation capabilities.
traffic generator auto traffic generate website free traffic web traffic bot unlimited website traffic software organic traffic generator tool

- **URL**: https://apify.com/hung.ad4gate/web-traffic-boots.md
- **Developed by:** [Hung Dinh](https://apify.com/hung.ad4gate) (community)
- **Categories:** Automation, Lead generation, SEO tools
- **Stats:** 1,180 total users, 225 monthly users, 97.3% runs succeeded, 12 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $19.90 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Web Traffic Generator for Google Analytics

An advanced Apify Actor designed to generate realistic web traffic for Google Analytics (GA) with sophisticated bot detection avoidance and human-like behavior simulation capabilities.

[![Watch the video](https://img.youtube.com/vi/6Xayii0R9FY/maxresdefault.jpg)](https://youtu.be/6Xayii0R9FY)

### [Video tutorial](https://youtu.be/6Xayii0R9FY)

### Key Features

- **WebRTC Protection**: Disables WebRTC to prevent real IP leakage when using proxies
- **Fingerprint Diversity**: Randomizes User-Agent, Viewport, Platform, Timezone, WebGL, and Canvas fingerprints
- **Proxy Support**: Full integration with Apify Proxy including Datacenter/Residential/Mobile options with country selection
- **Behavior Simulation**: Replicates authentic user behavior patterns (scrolling, dwell time, clicking)
- **GA Monitoring**: Tracks and confirms successful Google Analytics request transmissions

### Compatible Websites & Platforms

#### Supported Website Types

- **E-commerce Sites**: Shopify, WooCommerce, Magento, BigCommerce
- **Content Websites**: WordPress, Joomla, Drupal, Ghost
- **Landing Pages**: Unbounce, Instapage, ClickFunnels
- **SaaS Applications**: Web applications with GA integration
- **Corporate Websites**: Company sites, portfolios, and business pages

#### Analytics Platform Compatibility

- **Primary Support**: Google Analytics (GA3 & GA4)
- **Partial Support**:
  - Google Tag Manager implementations
  - Sites using both GA and other analytics tools
- **Limited Compatibility**:
  - Adobe Analytics (basic pageview tracking)
  - Facebook Pixel (basic pageview events)
  - Mixpanel (basic event tracking)

#### Technical Requirements

- Website must have Google Analytics properly installed
- Public accessibility (no authentication required for initial page load)
- Standard HTML/CSS/JavaScript implementation (no exotic frameworks)
- Reasonable page load times (under 30 seconds)

#### Input Parameters

```json
{
  "urls": [
    "https://example.com",
    "https://another-site.com"
  ],
  "sessions": 10,
  "dwellTimeRange": "30-90",
  "enableScrolling": true,
  "enableClicking": true,
  "maxInternalClicks": 2,
  "device": "auto",
  "uaVersionRange": "120-140",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Parameter Descriptions

- `urls` (required): List of URLs to generate traffic for
- `sessions` (required): Number of sessions to generate (1-1000)
- `dwellTimeRange` (required): Time to spend on each page in seconds (format: "min-max")
- `enableScrolling` (optional): Enable/disable scroll simulation (default: true)
- `enableClicking` (optional): Enable/disable internal link clicking (default: true)
- `maxInternalClicks` (optional): Maximum number of internal links to click per session (default: 2)
- `device` (optional): Device type to simulate - "auto", "desktop", "mobile", or "tablet" (default: "auto")
- `uaVersionRange` (optional): Browser version range for user-agent (format: "min-max", default: "120-140")
- `proxyConfiguration` (optional): Proxy settings for Apify Proxy or custom proxies

### Output Dataset

Each session generates a record in the dataset with the following information:

```json
{
  "url": "https://example.com",
  "timestamp": "2024-01-15T10:30:00.000Z",
  "sessionId": "session-0-1705312200000",
  "proxy": {
    "type": "DATACENTER",
    "country": "US"
  },
  "fingerprint": {
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)...",
    "platform": "Win32",
    "viewport": { "width": 1920, "height": 1080 },
    "screenResolution": { "width": 1920, "height": 1080 },
    "language": "en-US",
    "timezone": "America/New_York",
    "webglVendor": "Google Inc.",
    "webglRenderer": "ANGLE (Intel, Intel(R) UHD Graphics 620...)"
  },
  "behavior": {
    "scrolling": true,
    "clicking": true,
    "dwellTime": 65
  },
  "status": "success",
  "gaLoaded": true
}
```

### Fingerprint Diversity

The Actor utilizes an extensive dataset to generate diverse fingerprints:

- **User-Agents**: 50+ desktop, mobile, and tablet user agents across multiple browsers
- **Viewports**: Various common screen dimensions for different device types
- **Platforms**: Windows, macOS, Linux, Android, iOS with appropriate versions
- **Timezones**: Support for 50+ countries with geographically accurate timezones
- **Languages**: Appropriate language settings matching the proxy country
- **WebGL**: Randomized vendor and renderer information
- **Canvas**: Added noise to prevent duplicate fingerprints

### Behavior Simulation

1. **Page Load**: Loads the page and waits for GA script (3-5 seconds)
2. **Scrolling**: Scrolls 20-70% of the page with smooth motion
3. **Dwell Time**: Stays on the page for 30-90 seconds (configurable)
4. **Clicking**: Clicks 1-2 internal links (optional)
5. **Session End**: Closes the tab and ends the session

### GA Monitoring

The Actor monitors requests to:

- `google-analytics.com`
- `googletagmanager.com`
- `collect` endpoints

When a request is detected, it logs "GA loaded OK" and marks the session as successful.

### Proxy Configuration

Supports three proxy types:

- **DATACENTER**: Fast and stable datacenter proxies
- **RESIDENTIAL**: Residential proxies that appear as home IP addresses
- **MOBILE**: Mobile proxies that appear as mobile device connections

Each session uses a different proxy to ensure Google Analytics records unique visitors.

### Important Notes

- This Actor is intended for testing and development purposes only
- Do not use for spam or illegal purposes
- Comply with the Terms of Service of websites you visit
- Use responsibly and within reasonable limits

### Troubleshooting

#### GA Not Loading

- Verify the URL has GA script installed
- Increase GA load wait time
- Check if proxy is blocking GA domains

#### Sessions Being Detected

- Try different proxy type (RESIDENTIAL instead of DATACENTER)
- Reduce concurrent sessions
- Increase delay between sessions

#### Proxy Issues

- Check Apify Proxy credits
- Try different country codes
- Verify proxy groups availability

### License

**MIT** - *Free to use for personal and commercial projects*

# Actor input Schema

## `urls` (type: `array`):

List of URLs to generate traffic for. Each URL should be a valid HTTP or HTTPS address.

## `sessions` (type: `integer`):

Total number of sessions to generate. Each session represents one user visit.

## `dwellTimeRange` (type: `string`):

Min and max time to spend on each page in seconds. Format: min-max (e.g., 30-120)

## `enableScrolling` (type: `boolean`):

Whether to simulate realistic scrolling behavior during page visits

## `enableClicking` (type: `boolean`):

Whether to click on internal links found on the page during the session

## `maxInternalClicks` (type: `integer`):

Maximum number of internal links to click per session (0-5)

## `device` (type: `string`):

Choose device type for sessions

## `uaVersionRange` (type: `string`):

Restrict user-agent browser version to a range. Format: min-max (e.g., 120-140). Applies to Chrome/Chromium/Firefox identifiers in UA.

## `proxyConfiguration` (type: `object`):

Choose Apify Proxy or Owner proxy

## Actor input object example

```json
{
  "urls": [
    "https://proxies.free"
  ],
  "sessions": 1,
  "dwellTimeRange": "60-120",
  "enableScrolling": true,
  "enableClicking": false,
  "maxInternalClicks": 2,
  "device": "desktop",
  "uaVersionRange": "120-140",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://proxies.free"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hung.ad4gate/web-traffic-boots").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://proxies.free"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("hung.ad4gate/web-traffic-boots").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://proxies.free"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call hung.ad4gate/web-traffic-boots --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hung.ad4gate/web-traffic-boots"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/aNMgKoTCaelg51MsY/builds/ns02cPKTpoDPUT0rm/openapi.json
