Skip to content

Commit

Permalink
remove omniture calls from static pages (#15117)
Browse files Browse the repository at this point in the history
  • Loading branch information
gidsg committed Nov 28, 2016
1 parent 02ca46a commit 2b1af28
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
5 changes: 0 additions & 5 deletions applications/app/views/videoEmbed.scala.html
Expand Up @@ -88,11 +88,6 @@
@* Get iframes parent url: http://www.nczonline.net/blog/2013/04/16/getting-the-url-of-an-iframes-parent/ *@
var parentUrl = (!!window.parent && window.parent !== window) ? document.referrer : '';

@* Hack to correctly track external embeds which have been incorrectly embedded on theguardian.com *@
var sAccount = (/www\.theguardian\.com/.test(parentUrl)) ? 'guardiangu-network' : 'guardiangu-thirdpartyapps';

window.s_account = sAccount;

function hasSvgSupport() {
var ns = {'svg': 'http://www.w3.org/2000/svg'};
return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect;
Expand Down
4 changes: 0 additions & 4 deletions archive/app/views/notFound.scala.html
Expand Up @@ -96,10 +96,6 @@ <h2 class="sub-heading">404</h2>
</div>
</div><!-- /.fluid-wrap -->

<script>
var s_account="guardiangu-network";
</script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Expand Down
13 changes: 0 additions & 13 deletions identity/app/views/errors/error.scala.html
Expand Up @@ -96,18 +96,5 @@ <h2 class="sub-heading">@code</h2>
</div>
</div><!-- /.fluid-wrap -->

<script>
var s_account = "guardiangu-network";
</script>
<script src="https://static-secure.guim.co.uk/omni/omniture-H.25.3.js"></script>
<script>
s.pageName = "@code Error:" + window.location.href;
s.pageType = "errorPage";
s.prop19 = "frontend";
s.t();
</script>
<noscript>
<img src="http://hits.guardian.co.uk/b/ss/guardiangu-network/1/H.24.2/?v19=frontend&v7=@code&ns=guardian&c19=frontend&c9=@code&c30=non-content&c6=&c13=&pageType=errorPage&pageName=@code&g=http%3A%2F%2Fm.guardian.co.uk%2F/@code&" alt="" style="display: none;" />
</noscript>
</body>
</html>

0 comments on commit 2b1af28

Please sign in to comment.