In Progress

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>

Skills: JavaScript, jQuery / Prototype, HTML, HTML5

About the Client:
( 3 reviews ) Doniphan, United States

Project ID: #32671098

12 freelancers are bidding on average $23 for this job

(202 Reviews)
6.3
developer2581

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

$20 USD in 7 days
(45 Reviews)
6.5
(4 Reviews)
4.5
dikicamancic111

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

$20 USD in 7 days
(5 Reviews)
4.0
Jiboara

I can develop your site. Please see works first to compare the quality of my work. I insist you see my client's feedback about me from here: https://www.freelancer.com/u/Jiboara I am looking forward to seeing you in my More

$25 USD in 1 day
(22 Reviews)
4.2
ihorkostiuchenko

Hello client, I read your requirement and I'll do it in 30 min. It's easy for me. Please contact me. Thanks. Ihor.

$30 USD in 1 day
(3 Reviews)
2.7
gromovol

Hi, I am full stack Web and Mobile app developer with 3+years of experience in IT field. Especially,I am good at Website design. I read your poster seriously and it's fit for me. Your idea is clear and attractive for More

$20 USD in 2 days
(2 Reviews)
1.7
burzhuy

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!

$20 USD in 7 days
(3 Reviews)
1.7
Jones9238

Hello. I have read the description of your project and understood that. I am full stack web developer with 5+ years of experience and I have worked with multiple Clients & Companies before building websites using React More

$20 USD in 7 days
(1 Review)
1.1
ohanwusi

Hello dear. Hope you are doing well. I have gone through your project description and found myself suitable for the offer.   I am a senior Web/App Developer who has 7+ yrs of rich experience. Specifically, I have stron More

$20 USD in 7 days
(0 Reviews)
0.0
dzmitrykarahoda

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.

$20 USD in 1 day
(0 Reviews)
0.0
jogbuani

Good day, in respect to your project, i am able to handle the job proficiently and deliver within 2days..We have track records for delivering on time. we look forward to having the opportuniy and chance to handle the p More

$20 USD in 2 days
(0 Reviews)
0.0