Trying to rip a website, but it won't let me delete this script

froghead

Newbie
Joined
Jan 16, 2014
Messages
15
Reaction score
2
I'm ripping of a website but when I try to remove what seems to be the Google Analytics code, the website will not work. Can anyone tell me why? (i'm not removing the app.js script)

Code:
Code:
<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),
            m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
</script>
<script src="app.js"></script>
 
You're also remvoing app.js, which probably handles either ajax-requests or something simple as fading in the main content.
Keep it and it should work.
 
So just delete this:

Code:
<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),
            m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
</script>
 
Back
Top