# 🚦 Traffic Genius — Analytics QA & Load Tester \[💰$0.40/1K] (`misterkhan/traffic-genius`) Actor

Verify GA4, GTM, Meta Pixel & TikTok Pixel tags with real browser engagement (PAGEVIEW mode) or benchmark server p95 latency under concurrent load (STRESS_TEST mode).

- **URL**: https://apify.com/misterkhan/traffic-genius.md
- **Developed by:** [Khan](https://apify.com/misterkhan) (community)
- **Categories:** Marketing, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does Traffic Genius — Analytics QA & Load Tester do?

**Traffic Genius — Analytics QA & Load Tester** is a dual-mode Apify Actor that verifies **Google Analytics 4 (GA4), Google Tag Manager (GTM), Meta Pixel, and TikTok Pixel** firing using real browser engagement (`PAGEVIEW` mode) or benchmarks server response latency and HTTP status health under concurrent requests (`STRESS_TEST` mode).

Built for analytics engineers, performance marketing teams, QA automation pipelines, and DevOps teams, this tool lets you configure custom dwell time (`waitOnPage`), smooth scroll depth (`scrollPercentage`), and UTM attribution tags (`utmSource`, `utmMedium`, `utmCampaign`) and exports structured per-visit verification records in JSON, CSV, or Excel.

***

> 🛡️ **Zero Proxy Configuration Required:** Anti-blocking and regional routing are **handled automatically out of the box** — just paste your target URLs and click **Start**.

### What data can you extract with Traffic Genius — Analytics QA & Load Tester?

**📊 Detected Analytics & Ad Pixels** — array of verified `analyticsDetected` tags (`GA4`, GTM, `META_PIXEL`, `TIKTOK_PIXEL`) captured during page execution <br>
**🌐 Target & UTM Attribution URL** — full visited `url` and page `title` including appended `utm_source`, `utm_medium`, and `utm_campaign` query parameters <br>
**⏱️ Response Latency & Visit Duration** — end-to-end `durationMs` timing and HTTP status code (`httpStatus`) for every visit or load probe <br>
**📜 Scroll & Engagement Telemetry** — actual `scrollSimulated`, `scrollPercentageReached`, `visitNumber`, and execution `mode` (`analytics_qa` or `load_test`) <br>
**✅ Pass/Fail QA Status** — structured `status` (`SUCCESS` or error indicator) and ISO-8601 `checkedAt` verification timestamp <br>

***

### Why run automated Analytics QA and load tests with Traffic Genius?

**💪 Post-Deployment Tag & Pixel Verification** — automatically confirm that GA4, Google Tag Manager, Meta Pixel, and TikTok Pixel still fire after frontend releases or landing page updates <br>
**🕵️ Scroll-Triggered & Dwell-Time Event QA** — simulate realistic user scroll depth (`scrollPercentage`) and time on page (`waitOnPage`) to trigger scroll-depth and timer-based GTM tags <br>
**✨ End-to-End UTM Campaign Attribution Testing** — append custom `utm_source`, `utm_medium`, and `utm_campaign` parameters to verify that landing pages preserve marketing attribution <br>
**👍 Dual-Mode Browser QA & HTTP Latency Benchmarking** — switch between `PAGEVIEW` browser verification and `STRESS_TEST` concurrent HTTP benchmarking in a single Actor <br>
**📩 Real-Time Streaming to Apify Dataset** — every visit record streams immediately to your dataset for live export to Google Sheets, BigQuery, Slack alerts, Make, or n8n <br>

***

### How do I use Traffic Genius — Analytics QA & Load Tester?

1. Open **Traffic Genius — Analytics QA & Load Tester** in Apify Console.
2. Enter one or more target landing page or endpoint URLs in **Target URLs** (`startUrls`).
3. Choose **Execution Mode** (`mode`): select `PAGEVIEW` for browser tag verification with scroll and dwell engagement, or `STRESS_TEST` for HTTP latency benchmarking.
4. Configure **Visits per URL** (`visitsPerUrl`), **Dwell Time on Page** (`waitOnPage`), **Scroll Depth Percentage** (`scrollPercentage`), and optional **UTM parameters**.
5. Click **Start** and download your QA report in **JSON, CSV, Excel (.xlsx), or HTML table** format from the **Output** or **Dataset** tab.

***

### Input

Traffic Genius — Analytics QA & Load Tester accepts a JSON configuration object. Click on the [Input tab](https://apify.com/misterkhan/traffic-genius/input-schema) for the interactive visual form.

```json
{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "mode": "PAGEVIEW",
  "visitsPerUrl": 1,
  "waitOnPage": 3,
  "scrollPercentage": 60
}
```

**🌐 Target URLs (`startUrls`)** — array of target webpage or endpoint URLs to visit or benchmark <br>
**⚙️ Execution Mode (`mode`)** — `PAGEVIEW` runs browser visits with scroll/dwell engagement and analytics tag detection; `STRESS_TEST` runs concurrent HTTP latency probes <br>
**🔁 Visits per URL (`visitsPerUrl`)** — number of visits to perform per target URL (default: 1) <br>
**⏳ Dwell Time on Page (`waitOnPage`)** — seconds to remain on the page after scrolling in `PAGEVIEW` mode (default: 3) <br>
**📜 Scroll Depth Percentage (`scrollPercentage`)** — percentage of total page height to smoothly scroll during each visit (default: 60) <br>
**🏷️ UTM Source / Medium / Campaign (`utmSource`, `utmMedium`, `utmCampaign`)** — optional UTM attribution parameters appended to each target URL <br>

***

### Output sample

Results are packed into a structured dataset where each record represents a completed QA visit or latency probe. Below is an excerpt of the JSON output:

```json
[
  {
    "url": "https://example.com/?utm_source=apify_qa&utm_medium=automated_test&utm_campaign=tag_verification",
    "mode": "analytics_qa",
    "visitNumber": 1,
    "status": "SUCCESS",
    "httpStatus": 200,
    "durationMs": 4210,
    "scrollPercentageReached": 75,
    "analyticsDetected": [
      "GA4",
      "GTM"
    ],
    "checkedAt": "2026-10-15T12:00:00Z"
  }
]
```

***

### How much does it cost to run Traffic Genius — Analytics QA & Load Tester?

This Actor uses **Pay-Per-Event (Pay-Per-Result)** pricing with a **`$0.00` Actor start fee**. You only pay for verification records delivered to your dataset, and the `128 MB` runtime keeps platform compute costs near zero:

**🆓 Free Plan** — `$5.00 / 1,000 results` ($0.0050 per result, up to 40 results per run) <br>
**🥉 Starter Plan (Bronze)** — `$0.90 / 1,000 results` ($0.00090 per result, unlimited results) <br>
**🥈 Scale Plan (Silver)** — `$0.65 / 1,000 results` ($0.00065 per result, unlimited results) <br>
**🥇 Business+ Plan (Gold / Platinum / Diamond)** — `$0.40 / 1,000 results` ($0.00040 per result, unlimited results) <br>

***

> 💡 **Predictable, All-Inclusive Pay-Per-Event Pricing:** There is a **`$0.00` run start fee** and **no separate proxy configuration required**. You only pay the flat per-result rate above for data successfully delivered to your dataset — works out of the box on both **Free** and **Paid** Apify plans.

### How many visits or URLs can you test with Traffic Genius?

Traffic Genius is designed for both single-deployment CI/CD smoke tests and multi-page landing page audits:

- **Multi-URL Landing Page Audits:** Pass dozens or hundreds of regional landing pages in `startUrls` to verify that every localized page fires the expected GTM and GA4 containers.
- **Configurable Multi-Visit Sampling:** Increase `visitsPerUrl` to collect multiple timing samples per URL and measure response consistency across repeated visits.
- **Automated CI/CD & Scheduled Monitoring:** Trigger the Actor automatically after every GitHub Actions or Vercel deployment, or schedule hourly checks via **Apify Schedules**.

***

### Want to audit full website tech stacks or extract domain contacts?

If you want to fingerprint 7,000+ frontend frameworks, CMS platforms, and e-commerce apps or extract clean Markdown and business contact details from your domains, pair this Actor with our web intelligence suite:

🧩 **[Website Tech Stack Scanner](https://apify.com/misterkhan/website-tech-stack-scanner)** — detect 7,000+ technologies, CMS platforms, analytics tags, ad pixels, and infrastructure headers (From $0.50 / 1K) <br>
📄 **[Website to Clean Text & Markdown](https://apify.com/misterkhan/ai-markdown-crawler)** — convert any web page or documentation site into clean, token-efficient Markdown for LLMs and RAG pipelines (From $0.50 / 1K) <br>
📧 **[Website Contact & Email Scraper](https://apify.com/misterkhan/contact-enricher-scraper)** — extract business emails, phone numbers, and social profiles from any company domain (From $0.60 / 1K) <br>
📢 **[Facebook Ads Library Scraper](https://apify.com/misterkhan/facebook-ads-library-scraper)** — audit live Meta ad creatives, destination landing page URLs, and UTM structures (From $0.45 / 1K) <br>

👉 **[See all Actors by misterkhan on Apify Store →](https://apify.com/misterkhan)**

***

### Integrations and Traffic Genius — Analytics QA & Load Tester

Traffic Genius connects with any DevOps, alerting, or analytics workflow through [Apify integrations](https://docs.apify.com/platform/integrations):

- **CI/CD & Automation:** Trigger runs and route QA results via **GitHub Actions, Make, Zapier, n8n, or Pipedream**.
- **Dashboards & Warehouses:** Stream tag verification and latency logs into **Google Sheets, Datadog, BigQuery, Snowflake, or PostgreSQL**.
- **Webhooks:** Configure instant webhooks to alert Slack or PagerDuty whenever a required analytics tag is missing or `httpStatus` returns an error.

***

### Using Traffic Genius — Analytics QA & Load Tester with the Apify API

The Apify API gives you programmatic access to launch QA runs, monitor execution status, and retrieve dataset items in JSON, CSV, or Excel format.

- **Node.js:** Install the `apify-client` NPM package to call `misterkhan/traffic-genius`.
- **Python:** Install the `apify-client` PyPI package to integrate analytics QA and latency checks into Python test suites.
- **AI Agents & MCP:** Connect this Actor to Claude, Cursor, or custom AI agents via the **Apify MCP Server** (`https://mcp.apify.com`).

Check out the [Apify API reference docs](https://docs.apify.com/api/v2) or click on the [API tab](https://apify.com/misterkhan/traffic-genius/api) for ready-to-run code snippets.

***

### Frequently asked questions about Traffic Genius — Analytics QA & Load Tester

**⚙️ What is the difference between `PAGEVIEW` mode and `STRESS_TEST` mode? <br>**
`PAGEVIEW` mode launches a real browser session that renders JavaScript, scrolls to your configured `scrollPercentage`, waits `waitOnPage` seconds, and inspects network/DOM telemetry for `GA4`, GTM, `META_PIXEL`, and `TIKTOK_PIXEL`. `STRESS_TEST` mode performs fast HTTP requests to benchmark server response times and HTTP status codes.

**🛡️ Do I need to configure proxies? <br>**
**No — everything works out of the box with zero setup.** Regional routing, session management, and anti-blocking are handled automatically so you do not need to configure custom proxy settings.

**🧩 How do I detect 7,000+ CMS, framework, and infrastructure technologies in bulk? <br>**
Traffic Genius focuses on interactive analytics pixel verification (`GA4`, GTM, `META_PIXEL`, `TIKTOK_PIXEL`), scroll engagement, and latency benchmarking. To scan domains for 7,000+ Wappalyzer-compatible technologies, use [Website Tech Stack Scanner](https://apify.com/misterkhan/website-tech-stack-scanner).

***

### Is it legal to run automated QA and load tests?

Traffic Genius is designed for testing, auditing, and benchmarking websites and landing pages that you own, manage, or are authorized to audit. When running `STRESS_TEST` benchmarks, always ensure you have permission from the target domain owner and respect applicable terms of service. Read Apify's [blog post on the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) to learn more.

***

### Your feedback

We keep this Actor under active maintenance. If a run finishes successfully but returns fewer results than you expected, hangs, or errors — please **open an Issue before posting a public review** so we can diagnose and fix it for you.

**🛠️ How to report** — Use the Actor’s [Issues tab](https://apify.com/misterkhan/traffic-genius/issues/open) in Apify Console. Include the run ID, your input JSON, and what you expected vs. what you got. <br>
**⏱️ Response time** — We aim to reply within 24 hours on business days. <br>
**⭐ Reviews** — Happy with the results? A short positive review helps other users find a reliable scraper. Ran into a problem? Open an Issue first — we’ll work with you to resolve it before you leave a rating. <br>

# Actor input Schema

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

Target webpage URLs to visit or benchmark.

## `mode` (type: `string`):

PAGEVIEW runs browser visits with scroll/dwell & analytics detection; STRESS_TEST runs concurrent HTTP load testing.

## `visitsPerUrl` (type: `integer`):

Number of browser visits to perform per URL.

## `waitOnPage` (type: `integer`):

Seconds to stay on the page after scrolling.

## `scrollPercentage` (type: `integer`):

Percentage of page height to smoothly scroll.

## `utmSource` (type: `string`):

Optional utm_source query parameter to append.

## `utmMedium` (type: `string`):

Optional utm_medium query parameter to append.

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

Optional utm_campaign query parameter to append.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "mode": "PAGEVIEW",
  "visitsPerUrl": 1,
  "waitOnPage": 3,
  "scrollPercentage": 60
}
```

# Actor output Schema

## `results` (type: `string`):

All analytics verification and performance benchmark records.

## `usage_summary` (type: `string`):

Execution telemetry and extraction summary stored in the default key-value store.

# 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 = {
    "startUrls": [
        {
            "url": "https://example.com"
        }
    ],
    "mode": "PAGEVIEW",
    "visitsPerUrl": 1,
    "waitOnPage": 3,
    "scrollPercentage": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("misterkhan/traffic-genius").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 = {
    "startUrls": [{ "url": "https://example.com" }],
    "mode": "PAGEVIEW",
    "visitsPerUrl": 1,
    "waitOnPage": 3,
    "scrollPercentage": 60,
}

# Run the Actor and wait for it to finish
run = client.actor("misterkhan/traffic-genius").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 '{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "mode": "PAGEVIEW",
  "visitsPerUrl": 1,
  "waitOnPage": 3,
  "scrollPercentage": 60
}' |
apify call misterkhan/traffic-genius --silent --output-dataset

```

## MCP server setup

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

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/trgcHe2Lb0efxnDg7/builds/w4KgB3axifImqLyMv/openapi.json
