Thread Starter
jp123
(@jp123)
hosting said nothing is blocking…
any other possible solution?
when I search same issue in google I see some other people has same issue but I see no solutions…..
I am unsure if there is any other possible solution, You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?
Alternatively, you can add a simple <script>console.log("Hello world");</script> to see if that is being removed or not.
Thread Starter
jp123
(@jp123)
hosting said nothing is blocking.
Did you try what I suggested to check in my last reply?
Thread Starter
jp123
(@jp123)
Im not sure what you mean by “You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?”
however I tried put this one at file editor and it worked. it is not removed.
<script>console.log(“Hello world”);</script>
I’m not sure what you mean by “You can try writing simple text in the file instead of placing your js and see if that is being removed as well or not?”
You can write a generic text like “I am testing issue” and see if that displays on the website top(if you write after body tag) or is being removed.
however I tried put this one in file editor and it worked. it is not removed.
<script>console.log(“Hello world”);</script>
If possible please share the Javascript code that you’re trying to add? (Remove any private information from the script and replace with random letters)
Maybe there is something wrong with the code that we didn’t notice yet.
Thread Starter
jp123
(@jp123)
I tested with text and its working, not removed.
code I want to place on my site below (I changed actual ID number to MYID)
<script>(function(s,u,z,p){s.src=u,s.setAttribute(‘data-zone’,z),p.appendChild(s);})(document.createElement(‘script’),’https://iclickcdn.com/tag.min.js’,MYID,document.body||document.documentElement)</script>
I did an online search about the code you’re trying to use. I have seen a few articles that state that this code you’re trying to use creates Push Notification & Redirection Malware on the website.
I am guessing Jetpack is removing this code straight from files.
Thread Starter
jp123
(@jp123)
yeah I have Jetpack active on my site
Thread Starter
jp123
(@jp123)
ad network gave me new code and now it working, thank you very much for your help Vijay 🙂