Skip to content
Adrythm

ReferenceTracking error

Content Security Policy blocks some resources

A Content Security Policy is a site setting that lists where scripts and requests may come from. Google says this one does not list the addresses the Google tag needs, so the tag may fail to load or send data. Check the tag in Tag Assistant to see which address is refused. Then ask whoever controls the site's headers to allow that address, and retest.

At a glance

Where it shows
The Diagnostics tab in the Google tag settings, under Tag quality.
What stops
Measurement from the tag that is refused. Nothing on the visible page shows an error, so the first sign is a gap in the reports.
How serious
Medium. Conversions and remarketing from the affected pages stop being counted, and bids run on the data that is missing.

What it means

A Content Security Policy is a rule the site sends to the browser that says which addresses its scripts and requests may use. Google's message says the site's policy does not list the addresses the Google tag needs, so the browser can refuse to load the tag or stop it from sending data.

The message is about permission, not about the tag's code. The tag can be installed correctly and still be refused by the browser, because the site's policy is stricter than the tag expects. That is why the container looks right while the reports are empty.

A policy has separate lists for separate jobs: script-src for the scripts a page may load, connect-src for the data it may send, img-src for images, frame-src for frames. The Google tag uses all four. A policy that lets www.googletagmanager.com load the script and says nothing in the other lists lets the tag start and then refuses every hit it tries to send.

What actually triggers it

  1. A policy copied from an older setup

    Not on Google's help page

    A policy copied from a template, a security plugin or an earlier version of the site lists the addresses that were needed then. A tag added later calls an address the list does not include.

  2. A tag added after the policy was written

    Not on Google's help page

    The policy was set before the Google tag went in, so nobody checked the tag's addresses against it. Nothing on the page shows the refusal.

  3. A security update that tightens the policy site-wide

    Not on Google's help page

    A tightened policy blocks the tag on every page at once, not on one page. The first sign is a drop in what the reports show, not a page error.

  4. The script host is allowed and nothing else is

    Not on Google's help page

    Most guides start with www.googletagmanager.com in script-src, and many policies stop there. In our test on 2026-11-26 that policy let the tag load and then refused 20 to 22 of its requests across connect-src, img-src and script-src, and no Analytics hit or conversion left the page.

  5. A policy no header shows

    Not on Google's help page

    A policy can also arrive in a meta tag in the page's own head, or be added by a security plugin or the service in front of the site. A host who checks the server settings and finds no policy can be right about the server and wrong about the page. Read the response headers in the browser's network panel and search the page source for Content-Security-Policy.

Worked examples

Flagged
script-src 'self' 'unsafe-inline' https://www.googletagmanager.com, and no connect-src or img-src, with default-src 'self'
Passes
The same script-src, plus connect-src and img-src lists with the Google addresses Google publishes for Analytics and Google Ads, and frame-src https://www.googletagmanager.com

With default-src 'self', every list the policy leaves out falls back to the site's own domain. The tag loaded, and every hit it sent to a Google address was refused until the other lists named them.

Flagged
connect-src 'self' https://www.google-analytics.com https://*.google.com
Passes
connect-src 'self' https://*.google-analytics.com https://*.google.com

A named host allows that host only. Google's list uses the wildcard because Analytics can send hits to regional hosts such as region1.google-analytics.com, which the named host does not cover.

Flagged
The browser console shows a refused script from googleads.g.doubleclick.net on a site whose policy follows Google's published list
Passes
No change. Confirm in the network panel that the same address was then requested as an image and went out, and that the conversion request itself was not refused

In our lab test the tag fell back to an image request when the script was refused. A refusal in the console is a lead to check, not proof that data was lost.

Fix it in this order

  1. Open the Diagnostics tab in the Google tag settings and read the message.
  2. Run Google Tag Assistant on an affected page and find the Google measurement request that is refused. The blocked address comes from that test, not from guessing at the policy.
  3. Open the browser console on the same page. Each refusal names the list that refused it, such as connect-src or img-src, and the address. Write down both, because the fix goes in that list and not in script-src.
  4. Ask whoever controls the site's headers or security setup to allow the refused Google measurement addresses. Google's fix is to update the policy, not a setting in the ad account.
  5. Reload the page in Tag Assistant to confirm the request now goes through, then check the Diagnostics tab again.

If the message stays after the policy changes, the address the test names is still missing. Run the test again instead of widening the policy beyond the addresses it names.

Lead and call tracking is one of the things we sell, and it goes in before any ad budget is spent. A status like “Content Security Policy blocks some resources” is the kind of problem we fix as part of it.

Often confused with

  • Google tag has stopped sending data

    A tag that was working and stopped. It is marked Urgent after 48 hours without data and names no cause. This message names a policy that blocks the tag's resources, so start with the policy.

  • Missing Google tags

    Event tags with no base Google tag in the container. Nothing is blocked in that case, so the policy is not the cause.

What seven managed sites send, and six policies in a lab, 2026-11-26

On 2026-11-26 we read the response headers and home page source of the seven websites whose Search Console properties Adrythm manages, adrythm.com among them. We loaded the two that send a full policy in a phone-sized Chrome, scrolled each page so delayed tags would run, and logged every refusal the browser reported. Then we served a bare test page locally with the Google tag on made-up Analytics and Google Ads IDs, sent a page view, a lead event and a conversion, and loaded it under six policies: none, a framing rule only, the two live policies, one that allows only the script host, and Google's own published list for Analytics and Google Ads.

Four of the seven sites send no policy at all, in a header or in a meta tag. The tag cannot be refused by a policy on those sites, so this message would not apply to them.

One sends only frame-ancestors 'self'. That rule says who may show the site in a frame and limits no script or request, so it behaved in the lab exactly like no policy.

Two send a full policy, of 1,633 and 2,430 characters. Both loaded with no refusal on the live site, sending 11 and 8 requests to Google addresses, and both passed the lab test with nothing refused.

Neither full policy uses a nonce, the method Google recommends. Both allow inline scripts with 'unsafe-inline', which Google's guide discourages.

One of the two leaves out 'unsafe-eval'. Google's guide says Custom JavaScript variables in a Tag Manager container read as undefined without it, so on that site such a variable would fail quietly.

One names www.google-analytics.com and not the *.google-analytics.com wildcard Google's list carries. Its live Analytics hits went to analytics.google.com, which its *.google.com entry allows, so nothing was refused that day.

Neither full policy names a reporting address, so a refusal is seen only in a visitor's own browser console. Google's guide recommends reporting to catch them.

The policy that allows only the script host refused 20 to 22 requests in two runs. The tag loaded, retried its refused data requests as image requests, and those were refused too. No Analytics hit and no conversion left the page.

Google's published list still logged two refusals, both for a remarketing script from googleads.g.doubleclick.net, which the list leaves out of script-src. The tag then sent the same address as an image request, and the page view, lead event and conversion all went out.

Which case is yours

Start from what the browser console and the network panel show on an affected page.

No policy in the headers or the page source. A policy is not the cause. Check for a browser extension or a consent tool, then read the other messages in Tag Diagnostics.

Refusals in connect-src or img-src. The script loads and the hits are refused. Add the refused Google addresses to the list the console names.

A refusal in script-src for www.googletagmanager.com. The tag never starts. Allow that host for scripts, and the inline snippet with a nonce or 'unsafe-inline'.

A refused script whose address then went out as an image. The tag recovered. Leave the policy alone unless a conversion or Analytics request is refused too.

Variables in the container read as undefined. Look for Custom JavaScript variables. Move them to a Custom Template, or add 'unsafe-eval' if the site owner accepts the risk.

Does a Report-Only policy block the tag?

No. A policy sent as Content-Security-Policy-Report-Only only reports what it would refuse, and the browser lets the request through. It is the safe way to try a new list: send it as Report-Only for a few days, read the reports, then switch it to the enforcing header. None of the seven sites we read sent one.

Tag Assistant says the policy blocks Google scripts, but the host says there is no policy. Who is right?

Both can be. The host may have set nothing on the server while a security plugin, a page builder or the service in front of the site adds the header, or a meta tag in the page head sets it. Open the network panel, click the page's own document request and read its response headers, then search the page source for Content-Security-Policy. Whichever one carries the policy is where the change goes.

Still have a question this page did not answer?

Ask it on a call. Thirty minutes, a straight answer, and no follow-up sequence if you decide not to work with us.