I have a Javascript file written and saved in Cloud Page. Now,I want to refer this Javascript file from Cloud page inside my email in Content Builder. The reason why I am following this approach is because content builder removes Javascript statements mentioned implicitly inside emails. Any help would be much appreciated

  • The straight answer is that you can use <script src="your hosted url of cloud age"></script> ...... but I would strongly discourage using JS inside an Email... can you pls elobarate what you are trying to achieve using JS. Oct 12, 2020 at 6:21
  • We are trying to implement the logic of Countdown within our emails in Content Builder. Oct 12, 2020 at 6:32

1 Answer 1


As per the Email marketing best practice, using JavaScript inside email is NOT recommended [infact not supported] which might lead to security issues. Also may mark your email as SPAM or PHISHING.

Please read more here


But, it does NOT stop you from using Count down timer. There are many methods listed here, chose the one which suits your requirement.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .