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

Pulling Values from Data Layer using Adobe Launch

Avatar

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

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

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
eham06
Level 4

17-05-2018

I have a data layer titled "Bootstrapper._data_layer".  See screenshot from Chrome console below...

My development team created this data layer and they are pushing data to it.

I want to use Adobe Launch to pull values from this data layer.

How would I configure Adobe Launch to pull values (such as page_name) from this data layer?

How would I configure Adobe Launch to push new values to this data layer?

1489390_pastedImage_0.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

334 likes

Total Posts

272 posts

Correct Reply

83 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

334 likes

Total Posts

272 posts

Correct Reply

83 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
StewSchilling
MVP

18-05-2018

I don't disagree with the guidance of using the AEM context hub extension, but I wonder if it's more trouble than it's worth in your case.

Since your data appears to be pretty flat, you _could_ just create a Launch data element for each value that you care to access.

To do this, you'd :

1) choose "New Data Element",

2) use the Core extension and

3) select the "Javascript Variable" as the data element type.

4) Then you'd enter "Bootstrapper._data_layer.page_name" (no quotes) for the value and

5) set the name to something like "page_name".

Do this for as many data layer values that you need to reference from within rules.

Answers (6)

Answers (6)

Avatar

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

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

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
eham06
Level 4

19-05-2018

This worked...Clean and straight forward... Thank you very much for the tips....

Avatar

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

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

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
eham06
Level 4

19-05-2018

Cool... Thanks for the info...

Avatar

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

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

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
eham06
Level 4

19-05-2018

Thanks for the info... I will try this... Much appreciated... 🙂

Avatar

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

241 likes

Total Posts

159 posts

Correct Reply

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

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

241 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
thomas_amsler
Level 8

18-05-2018

Sorry, I didn't find any videos. But honestly it isn't that complicated:

The only thing you need to check with your developers is that they provide you with a JSON Schema of the datalayer they created.

In the ContextHub configuration you have only a radio button on the top whereas the first is the option for the AEM and the second is what you need, a custom datalayer (sorry I am not able to post screenshots here for some reasons).

If you select this "Customized ContextHub Data Layer" option you are provided with a text input field where you would add "Bootstrapper._data_layer" as this is the root of your custom datalayer. Next to this field is the "</> Open Editor" Button. If you click this, you get popup window where you add the JSON Schema mentioned above.

After that you can use it exactly the same way as the AEM datalayer and you'll probably find videos on how to define data elements with the context hub extension.

Avatar

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

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

Avatar
Validate 10
Level 4
eham06
Level 4

Likes

43 likes

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
eham06
Level 4

18-05-2018

Thanks for the info... I am looking for tutorials on ContextHub.  All of the ContextHub videos that I found assume that the user is using AEM.  We are not using AEM.  Do you know of any tutorial videos that speak specifically to ContextHub without a dependency on AEM?

Avatar

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

241 likes

Total Posts

159 posts

Correct Reply

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

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

241 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
thomas_amsler
Level 8

18-05-2018

I think the easiest way for you ist to install the ContextHub extension and configure your custom datalayer javascript object. There you can provide a JSON Schema of your object and then you can access it in your data elements. Check the tutorial videos on how to to this.

For pushing stuff into it, you probably need custom script elemnts in Launch.