# Website Traffic Generator & Organic Visitor Simulator (`hirepulse/website-traffic-generator`) Actor

Automated website traffic generator & organic visitor simulator for websites, Shopify & blogs. Real Patchright Chrome sessions from Google Search, 20 countries, mobile & desktop personas, high dwell time, safe CTA/video clicks, 80% proxy saver & live GA4 tracking.

- **URL**: https://apify.com/hirepulse/website-traffic-generator.md
- **Developed by:** [HirePulse](https://apify.com/hirepulse) (community)
- **Categories:** Automation, SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 completed website visit & journeys

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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

## Website Traffic Generator — AI User Journey & GA4 QA

**AI-Managed Synthetic Website Traffic, Multi-Step User Journey QA, Funnel & Conversion Testing, On-Page Video QA, Core Web Vitals Benchmarking and Live Google Analytics 4 (`GA4`) Beacon Verification** — for **Websites, E-Commerce Storefronts (Shopify, WooCommerce, Custom), SaaS Apps, Blogs, Landing Pages and Media Sites**.

Built on **Patchright** (driver-patched Chromium, zero CDP `Runtime.enable` leak), **Playwright Stealth**, **Camoufox** (anti-fingerprint Firefox) and **Crawlee**, with an **AI Autonomous Navigation + Playbook Cache Engine**. Every session arrives from a localized organic search result or social discovery, behaves like a real human persona, explores pages, clicks safe conversion CTAs, plays on-page video, measures Core Web Vitals, verifies live `GA4` `/g/collect` beacons, and saves up to **80% of proxy bandwidth** in `ultra_lite` mode.

> **1-Click Apify JSON Builder, sample datasets & architecture guides:** **[Traffic Engine AI Portal](https://edtool79-collab.github.io/ai-organic-traffic-engine/)**

![Website Traffic Generator — Patchright Stealth, AI Journey QA, Personas & GA4 Verification](https://edtool79-collab.github.io/ai-organic-traffic-engine/assets/img/apify-cover.png)

![Live Demo — Input Builder, Real Personas, Funnel Stages, GA4 Capture and Executive HTML Report](https://edtool79-collab.github.io/ai-organic-traffic-engine/assets/img/demo-showcase.gif)

![Executive QA report — composite health score, funnel retention, Core Web Vitals, pixel inventory and per-visit diagnostics](https://edtool79-collab.github.io/ai-organic-traffic-engine/assets/img/apify-report-v2.png)

***

### Pricing — What You Actually Pay

**$0.003 per delivered visit.** No per-visit proxy surcharge, no seat fee, no minimum run.

- **Failed visits are free.** You are charged only for visits that actually delivered a page. A timeout, a blocked request, a DNS failure or a WAF rejection costs you nothing.
- **No residential surcharge.** Some traffic Actors add **$0.15 per residential visit** — and $0.05 more when images are loaded. This Actor passes your `proxyConfiguration` straight through to the browser, so proxy usage is billed by Apify on your own plan instead of as an extra per-visit charge here.
- **Cheap to try.** The run container defaults to **1024 MB**, which is the minimum the `apify-actor-start` fee can be charged at (it is billed once per GB of memory). A 10-visit diagnostic run is **about $0.035** in total event charges.
- **Cap the spend.** Set `maxTotalChargeUsd` in the run options and Apify stops the run when the ceiling is reached.

| 10 visits through residential proxies | Visit charges |
| :--- | ---: |
| This Actor | **$0.030** |
| Traffic Actors charging +$0.15 per residential visit | **$1.530** |

***

### What a Single Visit Actually Does

Each synthetic visit is a **full behavioral journey**, not a single page hit:

1. **Organic entry** — builds a localized search or social referrer (Google/Bing/DuckDuckGo/Brave, 20 countries), optional keyword `searchQuery`, optional `utm_campaign`, and optional **live SERP warm-up** (the visitor actually opens a real search results page first, then clicks through to your site — referrer chains stay consistent for analytics).
2. **Consent & UI clearing** — accepts cookie/consent banners only when present (OneTrust, Cookiebot, generic `data-analytics-allow`), so analytics tags are allowed to fire exactly like a real visitor.
3. **Biometric browsing** — human-like scroll curve, heading pauses, eye-sweep and micro-movements matched to the assigned **persona**.
4. **Persona-specific interaction** — deep readers scroll long-form content; shoppers hover product cards and scan collections; funnel converters discover and click high-intent CTAs; media viewers scroll to and play on-page video.
5. **Safe conversion CTA click** — finds same-origin Pricing / Shop / Catalog / Demo / Get Started / Add-to-Cart style CTAs, **excluding ads and destructive actions** (`logout`, `delete`, `pay now`, `complete purchase`).
6. **Video QA** — detects `<video>` / product media elements on your own site, scrolls them into view, calls `play()` with muted inline playback and verifies real playback progress (`currentTime` advanced or `readyState >= 2`).
7. **Core Web Vitals** — captures TTFB, FCP, DOMContentLoaded, load time and transferred bytes per visit.
8. **Read-only ad inventory audit** — reports ad slots found (`adsbygoogle`, `data-ad-slot`, common banner containers) with **0 clicks**, so you can see monetized placements without ever interacting with them.
9. **Analytics proof** — intercepts real `GA4 /g/collect`, GTM, Microsoft Clarity, Plausible, PostHog, Segment and Mixpanel beacons, records measurement IDs and event names, and reports whether consent or layout issues broke attribution.
10. **Funnel accounting** — every visit is graded across six funnel stages (landing loaded → consent/UI clear → deep scroll → sub-page explored → CTA or video engaged → analytics verified).

***

### Five Behavioral Personas (Real Diversity, Not Random Clicks)

| Persona | Behavior |
| :--- | :--- |
| **Deep Content Reader** | Long-form scroll with heading pauses and eye-sweep — the blog/newsletter reader. |
| **Product & Catalog Shopper** | Card hovers, collection scanning, multi-page product browsing. |
| **Conversion & Funnel Explorer** | Finds interactive tools, pricing and signup CTAs, focuses forms, follows the conversion path. |
| **Video & Media Viewer** | Scrolls to on-page players, plays media, verifies playback. |
| **Mixed Realistic Rotation** | Automatic rotation across all four, so a batch of visits looks like a real audience mix. |

***

### AI Engine — Three Modes, Zero Mandatory AI Cost

1. **`smart_heuristic` (default, no API key):** type a plain-English mission in `aiGoal` and workers extract a compact, ad-free DOM map, score visible links/buttons against the goal, navigate naturally, and heal broken selectors — at **$0 external AI cost**. The report's four run notes are derived from the run data and are therefore identical in content quality whether or not an LLM is used.
2. **`hirepulse` (hosted cloud credits):** paste a credit key from **[gethirepulse.xyz/credits](https://gethirepulse.xyz/credits)** to power cloud LLM step reasoning (`/v1/qa/step-decision`) and deeper executive diagnostics (`/v1/qa/commander`) with no upstream LLM setup. When an LLM actually writes the assessment, it appears in `SUMMARY_REPORT.html` as an additional **AI commander assessment** note; the deterministic fallback does not add a note, because it would only restate the run notes.
3. **Bring Your Own Key:** `openai`, `gemini`, `openrouter`, `groq`, `ollama_cloud`. Keys are declared `isSecret: true` and redacted from all logs and datasets.

**Playbook Cache:** the first visit that resolves a route pattern teaches every later visit — including other concurrent workers — so repeat routes cost **0 extra LLM calls**, with human jitter so behavior never looks scripted.

**Self-healing routes (`aiRouteRepair`):** if a CSS class or button label changes, the engine re-reads the live DOM and matches the intended element by label, intent and context instead of failing the run.

***

### Read-Only Ad Audit — Deliberate Compliance Boundary

This Actor **never clicks advertising**. `auditAdPlacementsReadOnly` only *counts and reports* ad containers and slots so you can verify monetization layout. Every click path enforces an ad-exclusion guard, and the CTA discovery step skips anything inside an ad container or pointing to an ad network. The same rule applies to third-party social platforms: this Actor does not inflate views, likes or follows on sites you do not control.

***

### Quickstart Input

```json
{
  "targetUrl": "https://citedcart.com",
  "visitCount": 10,
  "maxConcurrency": 3,
  "dwellTimeSecs": 8,
  "waveMode": "natural_peaks",
  "visitorPersona": "mixed_personas",
  "enableCtaAndFunnel": true,
  "enableVideoInteraction": true,
  "auditAdPlacementsReadOnly": true,
  "aiMode": "smart_heuristic",
  "aiGoal": "Explore featured products, compare two collections, then check pricing like an engaged buyer.",
  "aiRouteRepair": true,
  "executionMode": "browser_journey",
  "browserEngine": "patchright",
  "devicePreset": "mixed_realistic",
  "sessionPersistence": true,
  "referrerMode": "mixed",
  "liveSerpWarmup": true,
  "searchQuery": "ecommerce seo visibility audit",
  "verifyGa4": true,
  "resourceMode": "ultra_lite",
  "countryCode": "US",
  "proxyConfiguration": { "useApifyProxy": true }
}
```

***

### Input Reference

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `targetUrl` | string | `https://citedcart.com` | Primary website, storefront, SaaS app or blog to visit. |
| `startUrls` | array | `[]` | Extra URLs visited in round-robin rotation. |
| `pages` | array | `["/"]` | Internal sub-paths explored during a visit. |
| `visitCount` | integer | `5` | Total journeys to execute (`1` – `50,000`). |
| `visitorPersona` | string | `mixed_personas` | `mixed_personas`, `deep_reader`, `product_shopper`, `funnel_converter`, `video_media_viewer`. |
| `maxConcurrency` | integer | `2` | Parallel sessions (`1` – `32`), automatically clamped by the RAM governor. |
| `dwellTimeSecs` | integer | `6` | Biometric reading/scroll dwell per page (`1` – `180`). |
| `waveMode` | string | `natural_peaks` | Arrival pacing: `natural_peaks`, `steady`, `ramp_up`, `burst`, `off`. |
| `enableCtaAndFunnel` | boolean | `true` | Discover and click safe same-origin conversion CTAs (ads and destructive actions excluded). |
| `enableVideoInteraction` | boolean | `true` | Scroll to on-page `<video>` players and verify real playback. |
| `auditAdPlacementsReadOnly` | boolean | `true` | Count ad slots and placements — **read-only, zero clicks**. |
| `aiMode` | string | `smart_heuristic` | `smart_heuristic`, `hirepulse`, `openai`, `gemini`, `openrouter`, `groq`, `ollama_cloud`, `off`. |
| `aiGoal` | string | `"Explore featured..."` | Plain-English visitor mission used by `ai_explore` and heuristic scoring. |
| `aiRouteRepair` | boolean | `true` | Self-heal broken `click` / `hover` / `scroll_to` selectors. |
| `aiApiKey` | string (secret) | — | Optional HirePulse credit key or BYOK LLM key. |
| `aiModel` | string | `""` | Optional model override for BYOK providers. |
| `executionMode` | string | `browser_journey` | `browser_journey` (real browser, JS, AI, GA4) or `http_fast` (protocol-level load). |
| `browserEngine` | string | `patchright` | `patchright`, `chromium` (Playwright Stealth), `camoufox`. |
| `devicePreset` | string | `mixed_realistic` | `mixed_realistic`, `desktopChrome`, `iphone14`, `pixel7`, `desktopFirefox`, `desktopSafari`, `ipadPro11`. |
| `sessionPersistence` | boolean | `false` | Reuse `storageState` slots to simulate returning visitors. |
| `referrerMode` | string | `mixed` | `mixed`, `google_organic`, `search_engines`, `social`, `direct`. |
| `liveSerpWarmup` | boolean | `false` | Open a real search results page first, then click through to the target site. |
| `searchQuery` | string | `""` | Keyword injected into organic referrer URLs. |
| `utmCampaign` | string | `""` | Optional `utm_campaign` (auto-fills matching `utm_source` / `utm_medium`). |
| `scenarioSteps` | array | `[]` | Ordered steps: `goto`, `ai_explore`, `human_browse`, `read_article`, `scan_products`, `play_video`, `use_tool`, `click`, `hover`, `scroll`, `scroll_to`, `fill`, `fill_email`, `fill_otp`, `assert`, … |
| `hirepulseEmailKey` | string (secret) | — | Optional HirePulse key enabling real signup/OTP flow testing (`fill_email`, `fill_otp`). |
| `verifyGa4` | boolean | `true` | Intercept and verify GA4, GTM, Clarity, Plausible, PostHog, Segment and Mixpanel beacons. |
| `resourceMode` | string | `ultra_lite` | `ultra_lite` (~80% less data), `lite`, `full`. |
| `captureScreenshots` | boolean | `false` | Save up to 25 viewport PNGs (`VISIT_001.png`, …) to the key-value store. |
| `countryCode` | string | `US` | ISO-2 country used for locale, timezone, localized search domain and proxy geo. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify Proxy (datacenter/residential) or your own HTTP/SOCKS5 proxy URLs. |

***

### Outputs

1. **Dataset (table + JSON/CSV/Excel):** one row per visit — HTTP status, persona, AI decision source (`playbook_cache`, `hirepulse_ai`, `smart_heuristic`), TTFB/FCP/load time, max scroll depth, CTAs clicked, videos played, read-only ad slots, detected pixels, GA4 verification, funnel stage reached, visited routes and step-by-step results.
2. **`SUMMARY_REPORT.html`:** a self-contained, offline report — no external fonts, scripts or images. Composite health score with letter grade, eight measurements on a ruled matrix with sub-scores, four data-derived run notes, six-stage funnel retention, a latency ladder, persona and referrer breakdowns, pixel and GA4 inventory, and a per-visit table with expandable step timelines and console diagnostics. Light and dark themes, A4 print stylesheet, keyboard accessible, WCAG AA contrast.
3. **`OUTPUT` (JSON):** machine-readable run summary with `healthScore`, `healthGrade`, `ga4VerificationRatePct`, `successRatePct`, `avgTtfbMs`, `avgFcpMs`, `totalCtasClicked`, `totalVideosPlayed`, `personaBreakdown`, `funnelCounts` and `aiTelemetry`.

***

### Ready-Made Tasks You Can Run Today

Open the **Example tasks** tab on **[apify.com/hirepulse/website-traffic-generator](https://apify.com/hirepulse/website-traffic-generator)**, browse **[apify.com/hirepulse](https://apify.com/hirepulse)**, or clone a pre-configured task in one click:

- **[Shopify / E-Commerce Traffic & GA4 Auditor](https://console.apify.com/create-task-from-example/pKMPLpPVmiMe3PvMP)** — shopper personas, collection browsing, CTA clicks, GA4 proof.
- **[GA4 Live Beacon & Consent Verifier](https://console.apify.com/create-task-from-example/2WULpddxWmNpkFBCZ)** — proves tags fire after consent, per country.
- **[Organic Google Search Traffic Simulator](https://console.apify.com/create-task-from-example/8nCGUqgQU0LbMZJTm)** — live SERP warm-up then organic landing.
- **[Website Load Speed & Core Web Vitals Tester](https://console.apify.com/create-task-from-example/sz0k9GMrH61wXIzkP)** — TTFB/FCP/load-time benchmark with an HTML report.
- **[AI Self-Healing User Journey QA](https://console.apify.com/create-task-from-example/6B9FrQByy85ntbJUz)** — `ai_explore` + `aiRouteRepair` against changing DOM.
- **[Landing Page Video & CTA Engagement Tester](https://console.apify.com/create-task-from-example/ZhWJ2jw5dstIuuYAY)** — plays on-page video and clicks the main CTA.

#### Automation Recipes

- **n8n / Make / Zapier:** schedule the Actor, read `OUTPUT`, and alert when `ga4VerificationRatePct < 100` or `successRatePct < 100`. Download the **[n8n workflow JSON](https://edtool79-collab.github.io/ai-organic-traffic-engine/assets/n8n-website-ga4-monitor-workflow.json)** or open the **[Traffic Engine AI Portal](https://edtool79-collab.github.io/ai-organic-traffic-engine/)** and **[1-Click JSON Config Builder](https://edtool79-collab.github.io/ai-organic-traffic-engine/config-builder/)**.
- **Apify Schedules:** run hourly with `visitCount: 2` as a canary, and nightly with a larger wave.
- **MCP / API agents:** call the Actor from any MCP client and feed `OUTPUT` into your own monitoring.

***

### Responsible & Authorized Usage

Engineered strictly for **synthetic user journey QA, traffic simulation, load testing and analytics verification on websites, storefronts and applications you own or are authorized to test**. No ad clicking, no third-party social view inflation, read-only WAF/challenge reporting, SSRF protection and full credential redaction. Proxy credentials, API keys and captured emails are masked in every log, dataset row and report.

# Actor input Schema

## `targetUrl` (type: `string`):

Main website, e-commerce storefront, SaaS landing page, or blog URL to visit.

## `startUrls` (type: `array`):

Optional list of multiple URLs to distribute visits across in round-robin order. If provided alongside Primary Target URL, all unique URLs are included.

## `pages` (type: `array`):

Relative paths (e.g. '/', '/pricing', '/blog') or full URLs on the target domain to explore during multi-page sessions.

## `visitCount` (type: `integer`):

Total number of synthetic visitor journeys to execute in this run.

## `visitorPersona` (type: `string`):

Select how visitors behave on the site: mixed realistic rotation across readers, shoppers, funnel converters, and media viewers, or lock a specific persona.

## `maxConcurrency` (type: `integer`):

Maximum concurrent browser contexts or HTTP workers. Automatically clamped to safe container RAM limits.

## `dwellTimeSecs` (type: `integer`):

Average time each visitor spends scrolling, reading, and interacting on landing/internal pages.

## `waveMode` (type: `string`):

Controls inter-visit arrival pacing so traffic arrives in natural peaks, gradual ramp-up, or steady intervals.

## `enableCtaAndFunnel` (type: `boolean`):

Automatically locates safe same-origin conversion CTAs (Pricing, Tools, Shop, Get Started, Features) while strictly excluding external ad slots.

## `enableVideoInteraction` (type: `boolean`):

Detects HTML5 <video> and product demo players on the target site, scrolls into view, triggers playback, and verifies readiness.

## `auditAdPlacementsReadOnly` (type: `boolean`):

Safely inspects AdSense/display slot visibility and layout presence without ever clicking ads (enforces strict zero-click safety).

## `aiMode` (type: `string`):

Smart Heuristic works out-of-the-box with zero API keys. Connect HirePulse Cloud Credits (gethirepulse.xyz/credits) or your own OpenAI / Gemini / OpenRouter / Groq / Ollama key for full LLM DOM reasoning.

## `aiGoal` (type: `string`):

Describe what visitors should naturally explore on your site without writing CSS selectors (e.g., 'Browse product collections, inspect pricing or tools, and read a guide').

## `aiRouteRepair` (type: `boolean`):

Automatically locate the closest matching visible button or link if a custom scenarioStep selector breaks after a UI update.

## `aiApiKey` (type: `string`):

Leave empty for Smart Heuristic mode, or paste your HirePulse Credit Key (https://gethirepulse.xyz/credits) or OpenAI / Gemini / OpenRouter / Groq / Ollama API key.

## `aiModel` (type: `string`):

Optional model ID when using BYOK mode (leaves provider's fast default model when blank).

## `executionMode` (type: `string`):

Real Browser Journey launches full browser contexts for JS rendering, biometric scrolling, personas, and GA4 verification. HTTP Fast sends lightweight HTTP/S requests without a browser.

## `browserEngine` (type: `string`):

Select Patchright (driver-level patched Chromium with zero CDP Runtime.enable leak) or Playwright Chromium with stealth evasions and fingerprint injection.

## `devicePreset` (type: `string`):

Emulate realistic desktop and mobile viewports, scale factors, touch capabilities, and matched User-Agent hints.

## `sessionPersistence` (type: `boolean`):

Reuse browser storageState slots across visits within the run to simulate returning visitors alongside new visitors.

## `referrerMode` (type: `string`):

Controls the HTTP Referer and document.referrer trail attached to each incoming visit.

## `liveSerpWarmup` (type: `boolean`):

When enabled, visits first open a search engine (DuckDuckGo / Bing), type the search query biometrically, and fall back cleanly to HTTP Referer if challenged.

## `searchQuery` (type: `string`):

Optional keyword phrase embedded into search/social referrer URLs (e.g., 'best shopify seo audit tool'). Auto-generated from target URL when left blank.

## `utmCampaign` (type: `string`):

If set, appends clean utm_source, utm_medium, and utm_campaign parameters to landing URLs so QA sessions are easy to filter in GA4.

## `scenarioSteps` (type: `array`):

Optional ordered array of journey steps. Supported types: search_entry, goto, read_article, human_browse, scan_products, use_tool, play_video, click_cta, click, hover, human_type, fill, fill_email, fill_otp, select, press, scroll, scroll_to, ai_explore, dismiss_overlays, audit_ads, switch_tab, close_tab, go_back, wait, assert, screenshot.

## `hirepulseEmailKey` (type: `string`):

Optional key from https://gethirepulse.xyz/credits when testing signup/OTP verification flows with fill_email & fill_otp.

## `verifyGa4` (type: `boolean`):

Inspect live network requests for GA4 (/g/collect), GTM, Clarity, Meta, Plausible, and PostHog hits, capturing Measurement IDs, events, TTFB, FCP, and JS console errors.

## `resourceMode` (type: `string`):

Ultra-Lite blocks heavy images, video, audio, and fonts while strictly keeping HTML, CSS, first-party JS, and GA4/GTM analytics scripts active — cutting proxy bandwidth by up to 80%.

## `captureScreenshots` (type: `boolean`):

Capture a final PNG screenshot for each browser visit (up to 25 screenshots per run) stored in the default Key-Value Store.

## `countryCode` (type: `string`):

2-letter ISO country code (e.g. US, GB, DE, CA, FR, AU, IL) used to match browser locale, timezone, localized Google/Bing domains, and Apify Proxy country when unspecified.

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

Use built-in Apify Proxy (Datacenter or Residential groups) or supply your own HTTP/SOCKS5 proxy URLs.

## Actor input object example

```json
{
  "targetUrl": "https://citedcart.com",
  "startUrls": [
    {
      "url": "https://citedcart.com"
    }
  ],
  "pages": [
    "/"
  ],
  "visitCount": 5,
  "visitorPersona": "mixed_personas",
  "maxConcurrency": 2,
  "dwellTimeSecs": 6,
  "waveMode": "natural_peaks",
  "enableCtaAndFunnel": true,
  "enableVideoInteraction": true,
  "auditAdPlacementsReadOnly": true,
  "aiMode": "smart_heuristic",
  "aiGoal": "Explore featured products, tools, pricing, or guides like an engaged organic visitor.",
  "aiRouteRepair": true,
  "aiModel": "",
  "executionMode": "browser_journey",
  "browserEngine": "patchright",
  "devicePreset": "mixed_realistic",
  "sessionPersistence": false,
  "referrerMode": "mixed",
  "liveSerpWarmup": false,
  "searchQuery": "ecommerce seo visibility audit",
  "utmCampaign": "",
  "scenarioSteps": [
    {
      "type": "goto",
      "value": "/",
      "label": "Open landing page"
    },
    {
      "type": "dismiss_overlays",
      "label": "Accept cookie/consent banner if present"
    },
    {
      "type": "human_browse",
      "value": 5000,
      "label": "Biometric mouse & reading scroll"
    },
    {
      "type": "play_video",
      "label": "Verify on-page video playback if present"
    },
    {
      "type": "ai_explore",
      "label": "AI autonomous page discovery (Playbook Cached)"
    }
  ],
  "verifyGa4": true,
  "resourceMode": "ultra_lite",
  "captureScreenshots": false,
  "countryCode": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `visitDataset` (type: `string`):

No description

## `executiveHtmlReport` (type: `string`):

No description

## `runSummaryJson` (type: `string`):

No description

# 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 = {
    "targetUrl": "https://citedcart.com",
    "startUrls": [
        {
            "url": "https://citedcart.com"
        }
    ],
    "pages": [
        "/"
    ],
    "visitCount": 5,
    "maxConcurrency": 2,
    "dwellTimeSecs": 6,
    "aiGoal": "Explore featured products, tools, pricing, or guides like an engaged organic visitor.",
    "searchQuery": "ecommerce seo visibility audit",
    "scenarioSteps": [
        {
            "type": "goto",
            "value": "/",
            "label": "Open landing page"
        },
        {
            "type": "dismiss_overlays",
            "label": "Accept cookie/consent banner if present"
        },
        {
            "type": "human_browse",
            "value": 5000,
            "label": "Biometric mouse & reading scroll"
        },
        {
            "type": "play_video",
            "label": "Verify on-page video playback if present"
        },
        {
            "type": "ai_explore",
            "label": "AI autonomous page discovery (Playbook Cached)"
        }
    ],
    "countryCode": "US",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hirepulse/website-traffic-generator").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 = {
    "targetUrl": "https://citedcart.com",
    "startUrls": [{ "url": "https://citedcart.com" }],
    "pages": ["/"],
    "visitCount": 5,
    "maxConcurrency": 2,
    "dwellTimeSecs": 6,
    "aiGoal": "Explore featured products, tools, pricing, or guides like an engaged organic visitor.",
    "searchQuery": "ecommerce seo visibility audit",
    "scenarioSteps": [
        {
            "type": "goto",
            "value": "/",
            "label": "Open landing page",
        },
        {
            "type": "dismiss_overlays",
            "label": "Accept cookie/consent banner if present",
        },
        {
            "type": "human_browse",
            "value": 5000,
            "label": "Biometric mouse & reading scroll",
        },
        {
            "type": "play_video",
            "label": "Verify on-page video playback if present",
        },
        {
            "type": "ai_explore",
            "label": "AI autonomous page discovery (Playbook Cached)",
        },
    ],
    "countryCode": "US",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("hirepulse/website-traffic-generator").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 '{
  "targetUrl": "https://citedcart.com",
  "startUrls": [
    {
      "url": "https://citedcart.com"
    }
  ],
  "pages": [
    "/"
  ],
  "visitCount": 5,
  "maxConcurrency": 2,
  "dwellTimeSecs": 6,
  "aiGoal": "Explore featured products, tools, pricing, or guides like an engaged organic visitor.",
  "searchQuery": "ecommerce seo visibility audit",
  "scenarioSteps": [
    {
      "type": "goto",
      "value": "/",
      "label": "Open landing page"
    },
    {
      "type": "dismiss_overlays",
      "label": "Accept cookie/consent banner if present"
    },
    {
      "type": "human_browse",
      "value": 5000,
      "label": "Biometric mouse & reading scroll"
    },
    {
      "type": "play_video",
      "label": "Verify on-page video playback if present"
    },
    {
      "type": "ai_explore",
      "label": "AI autonomous page discovery (Playbook Cached)"
    }
  ],
  "countryCode": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call hirepulse/website-traffic-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hirepulse/website-traffic-generator"
        }
    }
}
```

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/0e2CyZBgsrMYynpkY/builds/beBfD54URmcKAGCsl/openapi.json
