DataLayer and DTM | Community
Skip to main content
Level 3
October 16, 2015
Solved

DataLayer and DTM

  • October 16, 2015
  • 1 reply
  • 1112 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rahsing

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

1 reply

Rahsing
RahsingAccepted solution
Level 9
October 16, 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