# Website Marketing Audit: Pixels, Analytics & Lead Score (`robertosan16/website-marketing-audit`) Actor

Audit websites or a Google Maps leads list for marketing gaps: Meta Pixel, Google Analytics, Google Ads and TikTok tags (also inside Tag Manager), CMS, chat buttons, social profiles, emails, SEO basics, a 0-100 score and ready-made pitch reasons.

- **URL**: https://apify.com/robertosan16/website-marketing-audit.md
- **Developed by:** [Robert Khairislamov](https://apify.com/robertosan16) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 websites

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

## Website Marketing Audit: Pixels, Analytics & Lead Score

**Audit hundreds of websites in minutes and see which businesses need marketing help: Meta Pixel, Google Analytics, Google Ads and TikTok tags (also those hidden in Google Tag Manager), CMS, chat buttons, social profiles, emails, SEO basics, a 0–100 marketing score and a list of gaps you can pitch.** Paste websites, or plug in the results of a Google Maps Scraper run to qualify local business leads. **$5 per 1,000 sites.**

Built for agencies that sell websites, ads, SEO or analytics: instead of opening every site and its source code by hand, you get one table that says who has no pixel, who already pays for ads, whose site is not mobile-friendly or looks abandoned, and how to reach them.

### Who uses it

- **Digital and ads agencies**: find local businesses with no Meta Pixel, no analytics or no website at all, and open the conversation with a concrete gap.
- **Lead qualification**: score a Google Maps or CRM list; `adTracking: true` means the business already spends on ads (it has a budget), a low score means it needs help.
- **SaaS sales**: find sites on a given platform (WordPress, Wix, Shopify, Tilda, …) or without a chat tool.
- **Competitor research**: see which ad platforms and tools competitors use.

### What does it check?

| Area | Fields |
|---|---|
| 🎯 **Ad pixels** | `metaPixel`, `googleAds`, `tiktokPixel`, `linkedinInsight`, `pinterestTag`, `snapPixel`, `xPixel`, `microsoftAds`, `lineTag`, `vkPixel`, with ids |
| 📊 **Analytics** | `googleAnalytics` (GA4 ids), `googleTagManager`, `microsoftClarity`, `hotjar`, `yandexMetrica`, old `universalAnalyticsIds` |
| 🧩 **Tag Manager** | reads the site's Google Tag Manager container and adds the pixels configured there (`foundInTagManager`) |
| 🛠 **Platform** | `cms` (WordPress, Wix, Shopify, Squarespace, Webflow, Tilda, Joomla, …), `technologies` |
| 💬 **Chat and booking** | `chat` (WhatsApp, LINE, Telegram, Messenger, Viber, Tawk.to, Intercom, Jivo, …), `booking` (Calendly, Fresha, Booksy, OpenTable, SiteMinder, online shop, …) |
| 📇 **Contacts** | `emails`, `phones` from the home page and the contact page, `social` (Facebook, Instagram, TikTok, YouTube, LinkedIn, X, LINE) |
| 🔎 **SEO basics** | `title`, `metaDescription`, `h1`, `language`, `mobileViewport`, `structuredData`, `openGraphImage`, `noindex`, `copyrightYear` |
| ⚙️ **Technical** | `https`, `sslError`, `responseTimeMs`, `pageSizeKb`, `httpStatus` |
| ⭐ **Result** | `marketingScore` (0–100), `adTracking`, `adPixels`, `gaps` |

#### Example output

```json
{
  "domain": "pattayahomes.net",
  "status": "ok",
  "marketingScore": 55,
  "adTracking": false,
  "adPixels": [],
  "gaps": [
    "No analytics: visits and sources are not measured",
    "No Meta Pixel: cannot retarget visitors on Facebook and Instagram",
    "No Google Ads conversion tag: Google Ads cannot measure leads",
    "No structured data (schema.org) for rich results and local SEO"
  ],
  "emails": ["rent@pattayahomes.net", "sales@pattayahomes.net"],
  "phones": ["+66969253295"],
  "chat": ["WhatsApp", "LINE"],
  "social": { "facebook": "https://www.facebook.com/pattayahomes.net" },
  "mobileViewport": true,
  "https": true
}
```

### How to audit websites or Google Maps leads

1. **Websites**: paste domains or links. **Or Google Maps leads**: run the [Google Maps Scraper](https://apify.com/compass/crawler-google-places) for a category and city (for example "dental clinic" in Pattaya), copy the run's **dataset ID** and paste it into **Dataset of businesses**. Names, categories, phones, ratings and reviews are carried over.
2. Optional: set **Save only sites scoring at most** to 60 to keep only businesses with clear gaps.
3. Click **Start** and download the table as Excel or CSV, or send it to your CRM.

```json
{
  "datasetId": "YOUR_GOOGLE_MAPS_DATASET_ID",
  "includeNoWebsite": true,
  "maxMarketingScore": 70
}
```

### How is the score calculated?

| Check | Points |
|---|---|
| Analytics (GA4, Tag Manager, Clarity, Hotjar, Metrica) | 15 |
| HTTPS | 10 |
| Mobile-friendly | 10 |
| Meta Pixel | 10 |
| Google Ads tag | 10 |
| Chat or messenger button | 10 |
| Title, meta description, H1 | 5 each |
| Structured data | 5 |
| Other ad pixels (TikTok, LinkedIn, …) | 5 |
| Social profiles linked | 5 |
| Copyright not outdated | 5 |

Businesses **without a website**, with only a **social page**, or with a site that **does not open** get 0 and a matching gap.

### How much does it cost?

**$5 per 1,000 records** on the Apify Free plan, less on paid plans. Sites left out by the score filter, sites protected against bots, and pages that robots.txt closes are skipped for free.

### Tips

- **Who already advertises on Google**: [Google Ads Transparency Scraper](https://apify.com/robertosan16/google-ads-transparency-scraper) lists the ads of any website or brand; Telegram channels to advertise in are scored by [Telegram Channel Analytics](https://apify.com/robertosan16/telegram-channel-analytics).
- **Best local leads**: businesses with many Google reviews but `marketingScore` under 50: they have customers, but no marketing setup.
- **Has budget**: `adTracking: true` with gaps such as no Google Ads tag means they advertise but cannot measure results.
- **Abandoned sites**: filter `copyrightOutdated: true` or `status: unreachable` for a website redesign offer.
- **No website**: keep **Include businesses without a website** on; these are often the easiest sale.

### FAQ

**Does it open the site in a browser?** No. It reads the home page HTML (and the contact page when needed) and the site's Tag Manager container, like a visitor's browser receives them. Tags added later by other scripts may be missed.

**Does it respect robots.txt?** Yes. Pages closed to crawlers by robots.txt are not read. Sites that block automated visits are skipped (and not charged).

**Is it legal to contact these businesses?** The data is what businesses publish on their own websites. Rules for contacting businesses differ by country (for example GDPR in the EU, PDPA in Thailand): check the rules that apply to you and include an opt-out.

Missing a check or a feature? Open an issue in the Issues tab or email <support@mozartstandard.com>, and we will reply quickly.

If this Actor saved you time, a short review in the **Reviews** tab helps other users find it and helps us keep improving it.

# Actor input Schema

## `websites` (type: `array`):

Websites to audit: <code>example.com</code> or full links. One home page is checked per site.

## `datasetId` (type: `string`):

ID of a dataset in your account, for example the results of the <a href='https://apify.com/compass/crawler-google-places'>Google Maps Scraper</a>. Each business's <code>website</code> is audited, and its name, category, phone, rating and reviews are carried over. Other datasets with a <code>website</code> or <code>url</code> field work too.

## `includeNoWebsite` (type: `boolean`):

From the dataset, also save businesses with no website or only a Facebook or other social page: often the best leads for a web or ads agency.

## `maxMarketingScore` (type: `integer`):

Keep only weaker setups, for example 60 for businesses with clear gaps. Sites above it are left out (free). Empty saves all.

## `checkContactPage` (type: `boolean`):

When the home page has no email, also read the site's contact or about page for emails, phones, chat buttons and social links.

## `maxSites` (type: `integer`):

Stop after this many websites and businesses.

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

Websites are opened directly. Turn on a proxy only if you need requests to come from another country.

## Actor input object example

```json
{
  "websites": [
    "https://www.allbirds.com",
    "https://wordpress.org"
  ],
  "includeNoWebsite": true,
  "checkContactPage": true,
  "maxSites": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `audit` (type: `string`):

One record per website or business: score, ad pixels, gaps, contacts and details.

## `summary` (type: `string`):

Sites audited, without a website, unreachable, protected and skipped.

# 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 = {
    "websites": [
        "https://www.allbirds.com",
        "https://wordpress.org"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("robertosan16/website-marketing-audit").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 = {
    "websites": [
        "https://www.allbirds.com",
        "https://wordpress.org",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("robertosan16/website-marketing-audit").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 '{
  "websites": [
    "https://www.allbirds.com",
    "https://wordpress.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call robertosan16/website-marketing-audit --silent --output-dataset

```

## MCP server setup

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

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/e1JkGZtBGBeqGvGaL/builds/35D5YD8vXILlhSETH/openapi.json
