Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can DTM concatenate and/or minify scripts?

Avatar

Avatar
Validate 1
Level 1
chris_cast
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
chris_cast
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
chris_cast
Level 1

15-10-2015

Currently, if I have a rule with 3 third party scripts, DTM will load each script individually onto the page with separate requests. Is there a way to tell DTM to combine them?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

27-12-2015

Hi Chris / Todd,

It basically depends on the Type of Javascript / Third party tags you wish to combine.Please find below some points on the same.

1. Its not possible to combine Javascript / Third party tags from different vendors i.e. Fire a single image request for both the vendors.

2. For combining Javascript / Thirdparty tags from same vendor , you need to contact your vendor to device the mechanism for combining multiple tags.

3. For Adobe Analytics, Do not write a separate call s.t() for each Javascript code , Page load rule condition i.e. Top of the page , bottom of the page etc. will itself take care of that.

Please let us know if you have any further queries for the same.

Thanks & Regards 

Parit Mittal

Answers (3)

Answers (3)

Avatar

Avatar
Level 1
toddc9749728
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
toddc9749728
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
toddc9749728
Level 1

11-01-2016

ParitMittal wrote...

Hi Chris / Todd,

It basically depends on the Type of Javascript / Third party tags you wish to combine.Please find below some points on the same.

1. Its not possible to combine Javascript / Third party tags from different vendors i.e. Fire a single image request for both the vendors.

2. For combining Javascript / Thirdparty tags from same vendor , you need to contact your vendor to device the mechanism for combining multiple tags.

3. For Adobe Analytics, Do not write a separate call s.t() for each Javascript code , Page load rule condition i.e. Top of the page , bottom of the page etc. will itself take care of that.

Please let us know if you have any further queries for the same.

Thanks & Regards 

Parit Mittal

 

Parit, so I have a Page Load Rule that is not tied to anything except code.  See shot here: http://screencast.com/t/WdYDsFIheTnv  It is not associated to Analytics or anything else. Also, it triggers at Bottom of Page: http://screencast.com/t/TFT6bgc23

Inside that rule, I only have custom scripts created.  You can see them here: http://screencast.com/t/bngD0lVA  They are just general javascript that use _satellite.  Nothing complicated.

Finally, in the webpage networking on chrome, I see them all getting included separately.  http://screencast.com/t/LPU1lfQgZq

Now, you can see from my Page Load Rule, that I like to have all my scripts named as that makes maintenance a ton easier than trying to find something in one huge js script file.  However, I can't have hundreds of separate files included at run-time...

Avatar

Avatar
Level 1
toddc9749728
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
toddc9749728
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
toddc9749728
Level 1

27-12-2015

I am also wanting to know this.  I have a Page Load Rule that has 5 separate "Javascript / Third Party Tags".  They are all Sequential Javascript scripts.  When I check the network calls in Chrome, I see a separate satellite-[guid].js call for each.  Any way those could all be combined / minified into a single call?  I thought maybe it was just a staging thing, but I checked the live site and they are separate calls there as well.

Avatar

Avatar
Boost 5
Employee
Rudi_Shumpert
Employee

Likes

8 likes

Total Posts

64 posts

Correct Reply

24 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile

Avatar
Boost 5
Employee
Rudi_Shumpert
Employee

Likes

8 likes

Total Posts

64 posts

Correct Reply

24 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile
Rudi_Shumpert
Employee

15-10-2015

Chris,

It depends on the types of scripts.  Which ones are you trying to combine?

-Rudi