Forum Discussion
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; } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com