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

Importing javascript into personalization block

Avatar

Avatar
Validate 1
Level 1
kattyice
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
kattyice
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
kattyice
Level 1

26-02-2020

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 🙂

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

969 likes

Total Posts

1,091 posts

Correct Reply

513 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

969 likes

Total Posts

1,091 posts

Correct Reply

513 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

26-02-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

Answers (0)