Need help adding 2 javascript imports
Budget $10-30 USD
- Freelancer
- Jobs
- JavaScript
- Need help adding 2 javascript imports
I use a service called datadog. They have 2 functions i'd like to use. Each has a javascript import. I'd like to import both, but they have the same name and fight with each other. I need to use both.
How can I make the following 2 bits of code work on the same page together?
The 2 bits of code are:
<script>
(function(h,o,u,n,d) {
h=h[d]=h[d]||{q:[],onReady:function(c){[login to view URL](c)}}
d=[login to view URL](u);d.async=1;d.src=n
n=[login to view URL](u)[0];[login to view URL](d,n)
})(window,document,'script','[login to view URL]','DD_RUM')
[login to view URL](function() {
[login to view URL]({
clientToken: '<CLIENT_TOKEN>',
applicationId: '<APPLICATION_ID>',
site: '<DATADOG_SITE>',
// service: 'my-web-application',
// env: 'production',
// version: '1.0.0',
sampleRate: 100,
trackInteractions: true,
})
})
</script>
And
<script>
(function(h,o,u,n,d) {
h=h[d]=h[d]||{q:[],onReady:function(c){[login to view URL](c)}}
d=[login to view URL](u);d.async=1;d.src=n
n=[login to view URL](u)[0];[login to view URL](d,n)
})(window,document,'script','[login to view URL]','DD_LOGS')
[login to view URL](function() {
[login to view URL]({
clientToken: 'XXX',
site: '[login to view URL]',
forwardErrorsToLogs: true,
sampleRate: 100,
})
})
</script>
12 freelancers are bidding on average $23 for this job
Hi, This is M Zahid I went through the details of your project and would like to offer our services to deliver the results that you expect and we are sure you will not be disappointed. I got interested in your proje More
Hi! I've read the task detail and I believe that I am able to complete this task with your 100% satisfaction.I am a professional developer with skills including Firefox, Extensions & Additions, Excel and JavaScript and More
Hello client, I read your requirement and I'll do it in 30 min. It's easy for me. Please contact me. Thanks. Ihor.
Hello. I am open for cooperation, I have a lot of free time. I am interested in your order, you have the skills and abilities you need, please contact me!
Hi, as a Javascript expert that you are looking for, I can start right now and make the 2 js codes work on the same page within a few minutes as you want. Please contact me so I can start right now. Thanks.