I am trying to cleanup unnecessary code in a wordpress site. I see, in html source code of the website, there is a javascript. it is adroll script, check below…

<script type="text/javascript">
adroll_adv_id = "4XJPGN2DSVEYBBDED4DKXK";
adroll_pix_id = "SEEYI5KV2BA53OK5YIG7IP";
(function () {
var oldonload = window.onload;
window.onload = function(){
var scr = document.createElement("script");
var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
scr.setAttribute('async', 'true');
scr.type = "text/javascript";
scr.src = host + "/j/roundtrip.js";
((document.getElementsByTagName('head') || [null])[0] ||

I tried to locate the above code in all possible ways.

checked all the plugins

Deactivated Google Analytics plugin

Checked functions.php

Checked header.php and foother.php

downloaded wntire wordpress from server and then used MX dreamweaver to find adroll in source code.

But location of the javascript is still not found.

Read more here: How to locate a Javascript? It is there in HTML but not in any file


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: