How to debug Profile Scripts

Avatar

Avatar
Validate 1
Level 1
gylesf73140248
Level 1

Likes

4 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
gylesf73140248
Level 1

Likes

4 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
gylesf73140248
Level 1

04-10-2017

Hello!

How do you go about debugging profile scripts?

I assume a normal console.log doesn't work since its server side?

Thanks!

Gyles

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

202 likes

Total Posts

224 posts

Correct reply

90 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

202 likes

Total Posts

224 posts

Correct reply

90 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

20-11-2017

Hi Gyles,

You are correct console.log isn't helpful because they run server side. There are two methods that I use to debug them.

1. Add them as response tokens. This is easy to do: target > setup > response tokens enable the profile you want to debug. Now any time you load a page for your site with Target on it part of the response from Target will contain your value for the given profile script.

1353321_pastedImage_0.png

2. The other option is to use the mboxTrace debugging tool. This requires the an authorization token found here: target > setup > implemenation > authorization. Then you add these 2 parameters to your page url after the "?" mboxTrace=window&authorization=YOURTOKEN.

This is a little more informative than the response token because you get a before executed snapshot and an after snapshot of your profile. It will also show all the profiles availalbe for your profile.

1353322_pastedImage_1.png

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 2
harpreets991202
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
harpreets991202
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
harpreets991202
Level 2

28-11-2017

Nothing specific - So what all scenarios you have created profile scripts

Avatar

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
YogitaBist
Level 3

28-11-2017

Yes, is there anything specific you would like to enquire about?

Avatar

Avatar
Validate 1
Level 2
harpreets991202
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
harpreets991202
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
harpreets991202
Level 2

27-11-2017

Hi Yogita,

Hope you doing well!.

Are you writing profile scripts these days.

Regards

Harpreet Singh (ex-colleague)

Avatar

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
YogitaBist
Level 3

20-11-2017

ryanr8

This was very helpful .. Specially the second method ..

Thanks a lot for sharing it with us.

Avatar

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
YogitaBist
Level 3

Likes

20 likes

Total Posts

37 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
YogitaBist
Level 3

02-11-2017

I have same question.

Please do share if you were able to figure out.

Regards

Yogita