SOLVED

External Javascript not working when included in landing page template

Go to solution
Anonymous
Not applicable

External Javascript not working when included in landing page template

I am attempting to include two external javascript files in the footer of my landing page template. I have uploaded the files to my design studio. This technique has worked many times to include external CSS files in templates, and to include JS in pages themselves, but neither of these are being recognized by the pages that use the template:

    <script href="https://nation.marketo.com//na-ab11.marketo.com/rs/453-JFP-852/images/js.cookie.js"></script>

    <script href="https://nation.marketo.com//na-ab11.marketo.com/rs/453-JFP-852/images/utmcookies.js"></script>

The code is all correct, and the utmcookies one should produce a console log when it is first called. The jQuery library is being included prior to these files. I tried using http://na-ab11... in the URL as well, to no avail. I also tried wrapping the utmcookies.js code in a $(document).ready() with no success.

This page is attempting, unsuccessfully, to use the files: Creative in Online Video Advertising (Infographic)

I am baffled. Am I doing something dumb here? Do Marketo templates support inclusion of external javascript files from the design studio?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: External Javascript not working when included in landing page template

<script src=

not

<script href=

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: External Javascript not working when included in landing page template

<script src=

not

<script href=

Anonymous
Not applicable

Re: External Javascript not working when included in landing page template

Haha oh man. I guess my brain has completely worn out this week. Thanks Sanford.