Skip to main content
Level 2
February 26, 2020
해결됨

Importing javascript into personalization block

  • February 26, 2020
  • 4 답변들
  • 4756 조회

Hi there,

 

I have a question of how to import javascript that I have in the Adobe Campaign Classic to my personalization block. I tried to use "<%@ include file='javascriptTest' %>" to import, but the default pickup path seems not correct. So I am asking what is the standard path of the javascript path on the server for Adobe Campaign? (The path on the server which holds AC in our company is like ......./neolane/nl6/var/.....).

 

Or If I can not import the javascript from the file including method above, which way can I use to import a js as a library to our personalization block? Thank you 🙂

이 주제는 답변이 닫혔습니다.
최고의 답변: Jonathon_wodnicki

Hi,

 

You can't import js into personalization blocks, not the normal way. You can:

  • Include another personalization block that has js
  • Include the js using the personalization tab of the delivery along with eval(@jsData) in your personalization block

 

Thanks,

-Jon

4 답변

Jonathon_wodnicki
Community Advisor
Community Advisor
February 26, 2020

Hi,

 

You can't import js into personalization blocks, not the normal way. You can:

  • Include another personalization block that has js
  • Include the js using the personalization tab of the delivery along with eval(@jsData) in your personalization block

 

Thanks,

-Jon

YunxiangXu작성자
Level 2
February 26, 2020
Hi, John, thx for the response, its useful. But I have a question of how to use the eval(@jsData) that you mentioned? Could you give sth like an example? I will really appreciate that, thank you ! 🙂