Skip to content
FunnelGuard

Fix guide by FunnelsGuard

PII sent over plain http tracking endpoint: how to find and fix it

TRK-362High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Every tracking tag sends a request to a vendor or to your own collection server. That request often carries details about the visitor and the action, such as the page URL, an event name and sometimes form values. If the address starts with http://, the request is not encrypted.

Personal data (PII) means anything that identifies a person: an email address, phone number, full name, postal address or an ID tied to them. When PII rides on a plain http request, anyone on the same network path, such as public Wi-Fi, a compromised router or an intermediary, can read it. Browsers also treat these requests as mixed content on an https page, and may block them.

Why it costs you leads or sales

The direct cost is risk. Sending personal data unencrypted can breach data protection rules such as GDPR, which expect appropriate security for personal data. It can also expose your customers to interception and damage trust if it comes out.

Where the data leaks
  1. Visitor submits formEmail and phone entered
  2. Tag firesRequest built with email in it
  3. Sent to http:// endpointNo encryption, may be blocked as mixed content
  4. Platform receives hitConversion may never arrive

The lead form works, but the tracking request carrying the email is sent without encryption.

How to check if your site has it

Find insecure tracking requests
  1. Open DevTools on a key page

    In Chrome, press F12 and open the Network tab. Tick Preserve log.

  2. Run the journey

    Load the page, then submit your lead form or go through checkout with a test email.

  3. Filter for http requests

    Type http:// in the filter box, or add the Scheme column (right-click the column headers). Look for any request with the scheme http.

  4. Inspect the payload

    Click each insecure request and check the Payload and Headers tabs for the email, phone or name.

  5. Check the Console

    Look for messages starting with Mixed Content. They name the blocked or upgraded URL.

  6. Search your code

    Search theme files, tag manager tags and plugin settings for http:// next to pixel, collect, track or webhook URLs.

How to fix it

The fix has two parts: move every endpoint to https, then reduce the personal data you send. Start with the protocol, because it is quick.

Switch tracking endpoints to https
  1. Set site URLs to https

    Go to Settings > General and make sure WordPress Address and Site Address start with https://.

  2. Check tracking plugins

    Open each analytics, pixel and form-integration plugin and replace any http:// endpoint or webhook URL.

  3. Fix hard-coded snippets

    Search the theme header, footer and any header/footer script plugin for http:// tracking URLs.

Before and after for a pixel snippethtml
<!-- Before: unencrypted -->
<img src="http://collect.example.com/p?event=lead&email=jane@example.com" width="1" height="1">

<!-- After: encrypted, and no email in the URL -->
<img src="https://collect.example.com/p?event=lead" width="1" height="1">
Redirect http to https and upgrade stray requests (nginx)nginx
server {
  listen 80;
  server_name collect.example.com;
  return 301 https://$host$request_uri;
}

server {
  listen 443 ssl;
  server_name collect.example.com;
  add_header Content-Security-Policy "upgrade-insecure-requests" always;
}
Then reduce the personal data
  1. List what each tag sends

    From the Network tab, note which tags include email, phone, name or address.

  2. Remove what the platform does not need

    Send an event name and a non-identifying value instead, such as lead_form_submit.

  3. Use consent and hashing where a platform asks for them

    Some ad platforms accept hashed identifiers for matching. Only send these with the right consent, and over https.

Tracking request before and after

Broken

  • Endpoint starts with http://
  • Email visible in the request
  • Browser may block it as mixed content
  • Conversion missing from reports

Fixed

  • Endpoint starts with https://
  • No personal data in the URL
  • No mixed content warnings
  • Conversion arrives in the platform

How to confirm it's fixed

Confirm the fix
  • Network tab shows no request with scheme http during the full journey
  • The Console shows no Mixed Content messages
  • Form submit and thank-you page requests contain no email, phone or name
  • The conversion shows in GA4 DebugView or the ad platform's test events tool
  • Your tracking server certificate is valid and not expiring soon

How to prevent it happening again

Prevention habits
  • Always copy tracking snippets from the vendor's current docs, never from old emails or blog posts
  • Review new tags in GTM preview mode before publishing and check the scheme of every request
  • Set a Content-Security-Policy that includes upgrade-insecure-requests as a safety net
  • Renew certificates automatically on any server you run for tracking
  • Keep PII out of URLs, event names and parameters by default
  • Re-run your journeys after theme, plugin or tag changes

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real journeys on a schedule, such as a lead form or checkout, and checks the requests the page makes along the way. The check, named no_mixed_content, flags insecure http requests loaded on your https pages, which includes tracking calls.

Questions people ask

Why is my tracking pixel using http instead of https?

Usually an old snippet, a hard-coded URL in the theme, or a plugin setting still points to an http address. A tracking server without a certificate can also cause it. Search your theme, tag manager and plugin settings for http:// and replace each with https://.

Is sending an email address over http a GDPR problem?

It can be. GDPR expects appropriate security for personal data, and unencrypted transmission of emails or phone numbers is hard to defend. You should also ask whether the platform needs the personal data at all, and remove it if not. This is general information, not legal advice.

What is mixed content in tracking?

Mixed content is when an https page loads a resource, such as a pixel or script, over plain http. Browsers may block it or upgrade it. If blocked, the conversion hit never reaches the analytics or ad platform.

How do I find http requests on my website?

Open Chrome DevTools, go to the Network tab, run your form or checkout, and filter for http:// or add the Scheme column. Also check the Console for Mixed Content messages. Click each insecure request to see whether it carries personal data.

Will upgrade-insecure-requests fix this?

It makes browsers rewrite http subrequests to https, which helps as a safety net. It only works if the endpoint also supports https. Fix the source URLs as well, so no request starts on http.

Does moving to https remove the need to strip PII from tracking?

No. https protects the data in transit, but the vendor still receives it. If the platform does not need email, phone or name, remove them from URLs, events and parameters.

Can FunnelGuard tell me if my tracking uses http?

Yes. FunnelGuard runs your journeys on a schedule and its no_mixed_content check flags insecure http requests on your https pages. It does not decide whether each payload is personal data, so you still review what your tags send.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_mixed_content.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.