Using profile Geo-location

Avatar

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Dave_hamel1
Level 4

16-05-2018

Is there a way to push profile.geolocation.country in my mbox response? I was looking at profile scripts but I can't seem to access the DOM through it.  I know I can create experienced based on country, but I would like to leverage that information for other purposes.

Thanks,

Replies

Avatar

Avatar
Give Back 10
Employee
jrohit
Employee

Likes

14 likes

Total Posts

27 posts

Correct reply

9 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Give Back 10
Employee
jrohit
Employee

Likes

14 likes

Total Posts

27 posts

Correct reply

9 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
jrohit
Employee

16-05-2018

Hi Dave,

Response tokens help you to expose geo information(inbuilt within response tokens) on the page. It's a simple toggle under setup. You can also expose Profile scripts using response tokens. You can find more information on this topic at the below link:

Response Tokens

~Rohit

Avatar

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Dave_hamel1
Level 4

17-05-2018

Hi Rohit,  Thanks for the response.  I was able to turn them on (easy enough) but I am unclear how I access the information.  I have the latest experience cloud debugger.  Basically I am trying to create a console.log that says "You are in" +<country>.  I know this is probably basic but for the life of me I can't seem to figure it out.

Avatar

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 4
Dave_hamel1
Level 4

Likes

74 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Dave_hamel1
Level 4

17-05-2018

I made progress and got this to output.  But I am not sure what the name of the object is to grab the value of geo.country, suggestions?response.tokens.png

Avatar

Avatar
Give Back 50
Employee
Shruthi_N
Employee

Likes

272 likes

Total Posts

236 posts

Correct reply

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

Avatar
Give Back 50
Employee
Shruthi_N
Employee

Likes

272 likes

Total Posts

236 posts

Correct reply

64 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Shruthi_N
Employee

25-05-2018

You might have to use at.js custom events to listen for the mbox response and read the response tokens.

Avatar

Avatar
Validate 1
Level 2
danieli73027437
Level 2

Likes

10 likes

Total Posts

5 posts

Correct reply

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

Avatar
Validate 1
Level 2
danieli73027437
Level 2

Likes

10 likes

Total Posts

5 posts

Correct reply

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

31-05-2018

Hey Dave, How did you get this to output?

Avatar

Avatar
Give Back 10
Employee
jrohit
Employee

Likes

14 likes

Total Posts

27 posts

Correct reply

9 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Give Back 10
Employee
jrohit
Employee

Likes

14 likes

Total Posts

27 posts

Correct reply

9 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
jrohit
Employee

31-05-2018

Hi Daniel,

You need to enable Response Tokens in Target to get this response in network tab from Target.

~Rohit

Avatar

Avatar
Validate 1
Level 2
danieli73027437
Level 2

Likes

10 likes

Total Posts

5 posts

Correct reply

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

Avatar
Validate 1
Level 2
danieli73027437
Level 2

Likes

10 likes

Total Posts

5 posts

Correct reply

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

31-05-2018

I've done that, basically I want to be able to get the value of the experience.name response token, and be able to use it (assign it to a variable). How would I do that?