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

Adobe Launch with Drupal 8

Avatar

Avatar
Validate 1
Level 2
KrispySalsa
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

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

Avatar
Validate 1
Level 2
KrispySalsa
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
KrispySalsa
Level 2

25-06-2018

Hi One and all,

Has anyone out there used launch with Drupal8?  I have a very simple test JSON defined data layer, which looks like the below

<script>var digitalData =

[

{"page":

{"pageInfo":{

"pageName":"Home",

"destinationURL":"\/home",

"breadcrumb":"\/home",

"pageCategory":"page"},

"channel":

{"primaryChannel":"home",

"pageType":"page"},

"attributes":

{"language":null,

"contentType":"page"}}}];</script>

we would use JS, except Drupal8 doesn't like you out putting native JS to the page, so my developers advised to use JSON.  The issue I have is when I use _satellite.getVar('page Name'); I get a result of (" "), as far as I can tell all the config is correct inside the Launch UI, I have created a data Element with the name of page Name, the path to the data element is digitalData[0].page.pageinfo.pageName (Which I believe is correct).

When I inspect the DataLayer with Data slayer, all the elements are visible and populated.  I am trying to understand why the data layer elements are empty when I use the  _satellite command.  I hope this is enough info.

many thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
KrispySalsa
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

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

Avatar
Validate 1
Level 2
KrispySalsa
Level 2

Likes

9 likes

Total Posts

10 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
KrispySalsa
Level 2

27-06-2018

Hi All,

Adobe Client care have solved this issue.  The resolution to edit/create the  data element and use the core extension, then element type should be Custom code as below

ElementType.jpg

once the editor opened I added the following code

EditCode.jpg

the above code works for thew JSON dataLayer in Drupal 8

Answers (0)