Amphtml: Incapsula CDN adds analytics javascript to pages, breaks validation

Created on 16 Sep 2016  路  7Comments  路  Source: ampproject/amphtml

As per @cramforce request, opening a new issue: one of our users reported validation issue on AMP pages. Turns out they are using Imperva Incapsula CDN, which adds a piece of javascript for tracking to all pages:
https://monosnap.com/file/YEGachNyT5bYelENvdJa3HgFrzyvdu

Should be noted that:

  • I opened a support request with Incapsula 24hrs ago, no response yet
  • user excluded URLs ending with /amp from caching, and that fixed the problem. Of a/this prevents caching and b/ URL exclusion is only available on paid account

Most users have no clue why their pages do not vallidate, and when informed, some cannot disable caching per URL because they are on free accounts, so they must disable CDN entirely. That's an obstacle to adoption I think.

As a follow up to previous issue #2380 , maybe it would be good to contact CDN providers and inform them about the necessity to leave AMP pages alone and not inject stuff in them, like Cloudflare did?

Rgds

Bug

Most helpful comment

Thanks for opening this issue, I'm from Incapsula, will update here once we have a resolution

All 7 comments

FYI, Incapsuala replied to a question on tweeter with :

can be fixed upon request, working on automatic solution.

They should post here when automatic solution is active.

Thanks for opening this issue, I'm from Incapsula, will update here once we have a resolution

@Incaprules @rudygalfi what is the status of the issue ? any resolution so far ?

The solution was evaluated by a few customers and is now being deployed globally.

What's the latest update on this? Thanks

Incapsula supports AMP pages for all websites since Nov 2016

I assume this can be closed. So I am closing it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gmajoulet picture gmajoulet  路  3Comments

Download picture Download  路  3Comments

akshaylive picture akshaylive  路  3Comments

radiovisual picture radiovisual  路  3Comments

aghassemi picture aghassemi  路  3Comments