DTM passing Data Element names into reporting

Avatar

Avatar
Validate 1
Level 2
fixepah
Level 2

Likes

21 likes

Total Posts

10 posts

Correct reply

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

Avatar
Validate 1
Level 2
fixepah
Level 2

Likes

21 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
fixepah
Level 2

15-10-2015

Hello,

I have create numerous data elements based on JS objects on our pages.  When these objects are set with the value "null", DTM passed in the Data Element name into SiteCatalyst.  How do I stop this?  If the value is "null", I'd like DTM to not do anything with that object.  But there is no easy "condition" setup to use.  I am no developer so I can't create a custom script to do it.  That's what DTM is for. 🙂  Any help is appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Level 4
brett_hale
Level 4

Likes

90 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 4
brett_hale
Level 4

Likes

90 likes

Total Posts

16 posts

Correct reply

1 solution
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
brett_hale
Level 4

15-10-2015

You can use a custom script to get around this.

Replace obj.element with the value in the data element "path" input for the js object.

Replace %dataElement.name% with the actuall name of the data element.

return (obj.element && obj.element != "%dataElement.name%") ? obj.element : '';

I tested this on my server and seems to work as intended.

Brett

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
fixepah
Level 2

Likes

21 likes

Total Posts

10 posts

Correct reply

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

Avatar
Validate 1
Level 2
fixepah
Level 2

Likes

21 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
fixepah
Level 2

15-10-2015

Anyone with an idea on how to fix?