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

Is one way any better than the other?

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

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

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

31-07-2017

So just wondering if there is any difference at all regarding the 2 different methods below for capturing domain. Actually 3, I could use custom javaScript. Just wondering if there would be cost/benefit factors that I should be aware of when strategizing on the different methods to do the same thing.

Use JavaScript Object:

1269433_pastedImage_0.png

Use the built-in data element:

1269473_pastedImage_1.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
ericmatisoff
Employee

Likes

152 likes

Total Posts

279 posts

Correct Reply

78 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
View profile

Avatar
Coach
Employee
ericmatisoff
Employee

Likes

152 likes

Total Posts

279 posts

Correct Reply

78 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
View profile
ericmatisoff
Employee

01-08-2017

There really shouldn't be any difference, although the Force lowercase value is a good reason to go with the JS Object.

Jantzen.Belliston​ - any thoughts?

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

01-08-2017

I would use a JS object as well. When Adobe Launch is released, it's possible that some of the built in data elements or methods might change. I don't know for sure if hostname would be one, but it's an easy potential headache to avoid by setting up your own JS object. Also, as Eric mentioned, you have more flexibility with a JS object.

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

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

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

01-08-2017

Hey, that's exactly the answer I was looking for. I guess it's the little things that you look at when deciding which way to go.

So when using a built-in data element then you accept the way the data formatted else use a JavaScript object to modify the value if needed in order to have clean data in your reports.

thanks again for all your help.