Forum Discussion

SL's avatar
SL
Icon for Cirrus rankCirrus
Oct 04, 2015

Web Analytics

Hi All

 

I recently followed the following article to apply the iRule to send Web Analytics as required, https://devcentral.f5.com/articles/automated-web-analytics-irule-style

 

The Customer has now come back to me to say that there is a certain iFrame that they do not want to have send data to the Analytics site. Does anyone if that is possible that I can update the iRule so that certain pages dont send data to the Analytics site?

 

Thanx Sulaiman

 

1 Reply

  • Hello,

    You will have to modify the javascript content to check if the page is loading within an iframe or not. You can use the following function to do it :

    function inIframe () {
        try {
            return window.self !== window.top;
        } catch (e) {
            return true;
        }
    }