# E-commerce Technology Evidence Auditor - Shopify, Pixels & GA4 (`afkdigital/newapi102-ecommerce-technology-auditor`) Actor

Audit public HTML for Shopify, WooCommerce, Klaviyo, Meta Pixel, GTM and GA4 references. Source evidence, consent uncertainty and detected/notObserved/unknown results. Clay/n8n/Make examples. No pixel execution claims.

- **URL**: https://apify.com/afkdigital/newapi102-ecommerce-technology-auditor.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 completed unique domain audits

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/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

## E-commerce Technology Evidence Auditor

Audit customer-authorized public domains for Shopify, WooCommerce, Klaviyo, Meta Pixel, Google Tag Manager and GA4 references. Get source evidence and explicit uncertainty for Clay, n8n and Make workflows.

### Quick start

```json
{"domains":["afkmesh.com","example.com"],"maxPagesPerDomain":2,"timeoutSeconds":12,"renderMode":"http"}
```

| Input | Default | Limits |
| --- | --- | --- |
| domains | Two prefilled public hosts | 1–100 strings, max 2,048 characters each |
| maxPagesPerDomain | 2 | 1–5 HTML pages |
| timeoutSeconds | 12 | 2–30 seconds total per domain |
| renderMode | http | Static HTTP only in v1 |

Input URLs are reduced to lowercased IDNA hostnames; paths, queries and fragments are discarded. Duplicate hosts are inspected once per run. Apex and www remain separate. HTTPS port 443 is always used; no HTTP downgrade, login, proxy bypass or access-control bypass.

### Interpretation

Every technology has one of three statuses:

- **detected**: a supported public reference or configuration was observed.
- **notObserved**: no supported signal on the successfully inspected page sample. **This does not establish absence.**
- **unknown**: incomplete or skipped inspection without accepted positive evidence.

An HTML reference does not demonstrate that a pixel fires, collects data, sends events, belongs to the company, has a paid subscription or respects consent. Inline scripts are parsed, never executed. Conditional, disabled or copied code may contain references.

consentObserved reports recognized CMP scripts or a Google consent-default call. The actual consentState is always unknown; no cookies are read or buttons clicked. Consent gating, GTM container contents, dynamic scripts, first-party proxies and server-side tags can hide tools. This is not a consent-compliance test.

### Evidence rules, version 1.0.0

| Technology | Accepted static evidence |
| --- | --- |
| Shopify | cdn.shopify.com/s/ or /shopifycloud/ asset; Shopify generator; Shopify.shop assignment to a myshopify.com hostname |
| WooCommerce | /wp-content/plugins/woocommerce/ or /mu-plugins/woocommerce/ asset; WooCommerce generator |
| Klaviyo | static.klaviyo.com/onsite/ reference; \_learnq queue call/assignment or klaviyo global assignment |
| Meta Pixel | connect.facebook.net/.../fbevents.js reference; fbq init call |
| GTM | googletagmanager.com loader with explicit GTM- container ID |
| GA4 | googletagmanager.com loader with explicit G- destination ID; gtag config with G- ID |

Only www.googletagmanager.com is recognized by these Google rules. A loader filename alone is not sufficient to distinguish GTM and GA4. Vendor hostname boundaries are exact. Prose, HTML/JS comments, JSON and quoted JavaScript strings alone do not match. Remote scripts and containers are not fetched.

Each evidence item has technology, type, pageUrl, sourceUrl, redacted marker and ruleVersion. Full HTML bodies, cookies and response headers are not stored. URL queries/fragments and identifiers in inline markers are removed. Public asset paths can contain public site identifiers.

### Output

| Field | Meaning |
| --- | --- |
| domain | Normalized input host, null for rejected input |
| finalUrl / httpStatus | Homepage final URL without query/fragment and HTTP status, or null |
| platform | Single observed Shopify/WooCommerce family, otherwise unknown |
| detectedTechnologies | All six tools with status and nested evidence |
| evidenceUrls / evidenceTypes | Unique evidence sources and types |
| consentObserved | Markers, unknown actual state, no interaction |
| observationLimitations | Sampling, access and interpretation limits |
| findings | Observation findings; no execution claims |
| checkedAt | UTC ISO timestamp |
| auditStatus / billable | Completion and charge eligibility |
| pagesChecked / requestCount / bytesRead | Coverage diagnostics |

Positive evidence remains available when another requested page fails, but incomplete audits are free. A completed sample without a match is still a completed audit. Both Shopify and WooCommerce references produce platform=unknown and a conflict finding.

The Dataset provides JSON/CSV exports. Nested evidence is best preserved as JSON. RESULTS in the default key-value store also retains canonical recovered rows; SUMMARY provides run totals. Dataset intent is not repeated on ambiguous recovery, which can leave a row available only in RESULTS.

### Pricing and recovery

Configured event price: **$0.005 per completed unique domain audit ($5 per 1,000)**. The Store's approved price is authoritative.

Exactly one domain-audited event per completed normalized hostname per run, including no-match results. No extra charge per page, redirect, tool or retry. Invalid, blocked, incomplete, skipped and duplicate inputs do not produce a domain event. No retries are implemented in v1.

Only domain-audited may have a nonzero event price; no startup or automatic Dataset-item fee is intended. Native Apify event limits are checked before each new domain. Use a positive native cap. In our live test, Apify interpreted maxTotalChargeUsd=0 as an omitted cap and applied its default allowance; do not use that API query value to request a free/zero-work run. An effective allowance below one event prevents domain network work. Platform usage is intended to be included after paid publication.

A persistent journal saves charge intent before attempting a charge. An ambiguous interruption never triggers an automatic repeat charge. Reconcile uncertain billingStatus against actual run chargedEventCounts; a recovered row may appear only in RESULTS. New separate runs may audit and bill a domain again. This is conservative recovery, not a transactional delivery guarantee.

### Safety and limits

- Public HTTPS only; IP literals, credentials, nonstandard ports, internal names and authentication redirects rejected.
- All A/AAAA answers are resolved twice before every hop. Private, reserved, mixed and changed answers fail closed.
- Validated IP pinning, certificate validation and actual socket-peer checks protect each connection.
- Up to 12 HTTP requests per domain, including redirects; at most 3 redirects per page.
- Up to 1.5 MB per response and 16 KiB headers; identity content encoding requested.
- One domain at a time. Additional pages are a bounded sample of same-origin homepage links; no cart, checkout, account or login traversal.
- All pages share the domain deadline. New work stops within 235 seconds; independent 285-second guard and 300-second platform timeout.
- v1 does not render browsers. renderMode other than http is rejected explicitly. This limits visibility of dynamically loaded tools.

### Examples and development

#### Shared API example

Start POST https://api.apify.com/v2/acts/afkdigital~newapi102-ecommerce-technology-auditor/runs with a securely stored Authorization: Bearer YOUR_TOKEN header and the Quick start JSON body above. Save data.id. Poll GET https://api.apify.com/v2/actor-runs/RUN_ID until SUCCEEDED, then fetch https://api.apify.com/v2/datasets/DATASET_ID/items?format=json using data.defaultDatasetId. Route FAILED, ABORTED and TIMED-OUT to errors; set an overall polling deadline slightly above 300 seconds. Use a positive maxTotalChargeUsd query cap on the start request.

**Clay:** Map your domain column into a one-domain body. Use HTTP API enrichment to start the run, then a separate polling workflow to retrieve Dataset rows. Map platform, auditStatus, checkedAt and each technology status into columns; retain evidence for review.

**n8n:** HTTP Request (start) → Wait → HTTP Request (poll) → If terminal status → HTTP Request (Dataset) → Split Out. Example GA4 status expression: {{ $json.detectedTechnologies.find(t => t.technology === 'ga4')?.status ?? 'unknown' }}.

**Make:** HTTP (start) → save run ID → polling route → HTTP (Dataset) → JSON Parse → Iterator → destination table. Preserve consentObserved and observationLimitations along with technology statuses.

Do not coerce notObserved or unknown to false/absent. These are configuration examples; no live Clay, n8n or Make account was tested. Private drafts require the owner's credential. Expanded English guides, portfolio mapping and signature sources are included in the source bundle under docs/.

Node 22, Apify SDK 3.7.0, cheerio 1.1.2, acorn 8.15.0, ipaddr.js 2.2.0; locked dependencies.

```sh
npm ci --ignore-scripts
npm test
npm run test:live
```

Docker builds run the automated detection, safety and billing tests. Operator tools, credentials and local evidence are excluded from deployment.

# Actor input Schema

## `domains` (type: `array`):

Public domains you are authorized to inspect; credentials and IP literals are rejected. Paths are discarded; duplicate hostnames inspected once.

## `maxPagesPerDomain` (type: `integer`):

Root page plus a bounded sample of same-origin links.

## `timeoutSeconds` (type: `integer`):

Shared deadline for all pages, DNS and redirects.

## `renderMode` (type: `string`):

v1 is HTTP only. No browser, cookie interaction or JavaScript execution is included.

## Actor input object example

```json
{
  "domains": [
    "afkmesh.com",
    "example.com"
  ],
  "maxPagesPerDomain": 2,
  "timeoutSeconds": 12,
  "renderMode": "http"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "domains": [
        "afkmesh.com",
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/newapi102-ecommerce-technology-auditor").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 = { "domains": [
        "afkmesh.com",
        "example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/newapi102-ecommerce-technology-auditor").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 '{
  "domains": [
    "afkmesh.com",
    "example.com"
  ]
}' |
apify call afkdigital/newapi102-ecommerce-technology-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/newapi102-ecommerce-technology-auditor"
        }
    }
}
```

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/9Hy5AmXW9cXQzU1cS/builds/pR9hjc1PIw3scj8Yh/openapi.json
