Do I need a data layer or can i use direct call for everything?

Avatar

Avatar
Validate 1
Level 1
abcdapply
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
abcdapply
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
abcdapply
Level 1

24-07-2019

Apparently there's a really old JavaScript way of updating props of an `s` variable. DTM is the more recent old way and Adobe Launch is the newest way. I'm using Adobe Launch. For a SPA, the docs suggest I can update my data layer then set up rules in the portal to copy the props from my data layer into adobe analytics for tracking pages. I also see that there's a way of doing a direct call using `window._satellite.track(eventName, payload)`.

What I'm wondering is if I need to bother with the data layer approach or if I can just direct call everything with `window._satellite.track` and configure in the portal which one is a page and which is an event/link? Currently I've got code that will use the data layer to track pages and a direct call to track things like specific click events. Ideally I can just do it all one way.

Thank you!

View Entire Topic

Avatar

Avatar
Boost 5
Employee
garretth7904271
Employee

Likes

6 likes

Total Posts

11 posts

Correct reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile

Avatar
Boost 5
Employee
garretth7904271
Employee

Likes

6 likes

Total Posts

11 posts

Correct reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile
garretth7904271
Employee

25-07-2019

Great question. I want to clarify a few points to check my understanding and ensure I am addressing your question.

A Direct Call rule is essentially a type of page event to trigger a Launch Rule. Whereas the data layer is meant to make the data you would send on the request more easily accessible. SPA implementations prefer Direct Call rules because the normal hooks, such as page load or page top, are less applicable as the page is not refreshing as the end user navigates the site. So a direct call rule placed in your code that simulates a new page load for example can help to track user navigation on an SPA.

In short they do not need to be mutually exclusive options. If you are able to access the data and set the variables within the rule without a data layer then that is fine.