Expand my Community achievements bar.

SOLVED

Tracking drop-down using DTM

Avatar

Level 1

How we can track drop downs using DTM. I have been searching for it, but not able to find.Please suggest

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @rituk49412512,

As per my understanding either you want to track when the users click on a dropdown or just the values present in the dropdown.

In case you want to track click on dropdown you can create an Event Based rule which will trigger on click event for the dropdown.

In case you want to track items in the dropdown you need to populate a ListVar by populating the values in dropdown to a Data Element and then using that Data Element to populate the list var with a statement as follows:

s.listVar1 = _satellite.getVar("Name of Data Element");

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi @rituk49412512,

As per my understanding either you want to track when the users click on a dropdown or just the values present in the dropdown.

In case you want to track click on dropdown you can create an Event Based rule which will trigger on click event for the dropdown.

In case you want to track items in the dropdown you need to populate a ListVar by populating the values in dropdown to a Data Element and then using that Data Element to populate the list var with a statement as follows:

s.listVar1 = _satellite.getVar("Name of Data Element");