Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Can I disable the SiteCatalyst static variables in the /libs/cq/analytics/widgets code?

$
0
0

Hello,

 

We are having serious problems with a installation of the tracking integration in CQ 5.4

 

Whenever we load the Page Properties dialog in the CQ5 WCM interface, it creates a lot of hidden form fields for the jcr:content/analytics/cq:variables property, and these get filled in with a lot of "junk". Every time we save the page this seem to double in size! We're loading some of these pages in publish with .json calls which means that very quickly we end up with 2-10MB HTTP GET requests

 

The data in the JCR starts to look like this :-

<analytics cq:variables="[\,\,\,\,\,\,\,\,[&quot;charSet&quot;\,&quot;UTF-8&quot;]\,[&quot;cookieLife time&quot;\,&quot;&quot;]\,[&quot;currencyCode&quot;\,&quot;USD&quot;]\,[&quot;trackInline &quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;charSet&quot;\,&quot;UTF-8&quot;]\,[&quot;co okieLifetime&quot;\,&quot;&quot;]\,[&quot;currencyCode&quot;\,&quot;USD&quot;]\,[&quot;tra ckInline&quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;charSet&quot;\,&quot;UTF-8&quot;]\,[ &quot;cookieLifetime&quot;\,&quot;&quot;]\,[&quot;currencyCode&quot;\,&quot;USD&quot;]\,[& quot;trackInline&quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;charSet&quot;\,&quot;UTF-8&q uot;]\,[&quot;cookieLifetime&quot;\,&quot;&quot;]\,[&quot;currencyCode&quot;\,&quot;USD&qu ot;]\,[&quot;trackInline&quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;charSet&quot;\,&quot ;UTF-8&quot;]\,[&quot;cookieLifetime&quot;\,&quot;&quot;]\,[&quot;currencyCode&quot;\,&quo t;USD&quot;]\,[&quot;trackInline&quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;charSet&quot ;\,&quot;UTF-8&quot;]\,[&quot;cookieLifetime&quot;\,&quot;&quot;]\,[&quot;currencyCode&quo t;\,&quot;USD&quot;]\,[&quot;trackInline&quot;\,&quot;&quot;]\,\,\,\,\,\,\,\,\,[&quot;char Set&quot;\,&quot;UTF-  etc...

 

We've tracked (no pun intended) this down to the file /libs/cq/analytics/widgets/source/sitecatalyst.js and are wondering if we can comment out from around line 30 :-

........

             for(var i=0; i<variableDefaults.length; i++) {

                 dlg.formPanel.add(new CQ.Ext.form.Hidden({

                     name:'./analytics/cq:variables',

                     value: CQ.Ext.util.JSON.encode(variableDefaults[i])

                 }));

             }

........

And at line 80:

        setValue("cq:variables", parentConfig["cq:variables"]);

 

This should prevent these fields in the Page Properties dialog from ever appearing (as far as we can tell).

  1. Does anyone know if there's any other dependencies on this?
  2. Are there any side-effects to what we propose?
  3. And has anyone else ever seen the crazy values appear as above?

 

[edit] (This has also been raised in Daycare 32510)

 

Thanks for any advice,

 

Dan Leong


Viewing all articles
Browse latest Browse all 12476

Trending Articles



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