DataLayer and DTM

Avatar

Avatar
Validate 10
Level 2
Sameer_Khaladka
Level 2

Likes

2 likes

Total Posts

38 posts

Correct reply

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

Avatar
Validate 10
Level 2
Sameer_Khaladka
Level 2

Likes

2 likes

Total Posts

38 posts

Correct reply

5 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 5
Affirm 3
View profile
Sameer_Khaladka
Level 2

15-10-2015

Hello All,

We are in the process of designing a DataLayer to be consumed by DTM. The application rewrite is in Process and we are moving to AngularJS implementation from ASP.NET pages

Implementing DataLayer Object for Page Loads Metric and utilizing it in DTM looks straight forward. 

But capturing user actions in the DataLayer is little confusing. Suppose, I create "User Action Object" per page like an example below

             
    "category": "link_tracking",
    "action": "link_clicked",
    "link_name": "My Insurance Logo",

How do I use it in DTM? I mean how should I use this object to map it to an event?

 

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct reply

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

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Hi Sameer,

I believe you'd need to map this object to a data element which in turn can be mapped to the event.

For the example you've used, here's how you can go about it: set the event as a click event (for the action) and pass the link_name into the data element. Name the data element on the basis of your category. Let me know if that makes sense.

Here's some documentation on data elements.

Rahul

Answers (0)