Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Disabling GZIP Compression on CFM pages for Google Analytics Code

$
0
0

In order to put Google Analytics (GA) on all CF-generated pages, without having to edit 1000's of CFM pages, I am trying to use an IIS URL Rewrite Outbound rule to add the GA code. Outbound rules require no compression in order to do the equivalent of a search/replace on generated content. But CF is compressing the generated page, so the outbound rule fails.

 

THis is verified with a simple CFM page. With the outbound rule disabled, the CFM page loads correctly. With the outbound rule enabled, the CFM page returns a 500.52 errror. This is because the generated page is compressed. (Compression is turned off at the IIS site level).

 

This is with CF 9.01, Server 2008 R2, IIS 7.5, with URL Rewrite module installed.

 

1) Is it possible to turn off compression on CF-generated pages?

2) Is there a way to include the GA code on all CF pages, without  editing 1000's of files. Note that there are many different CF applications running on the server, so there is not one common application.cfm/cfc.

 

Thanks...Rick...


Viewing all articles
Browse latest Browse all 5794


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>