내 커뮤니티 업적 표시줄을 확대합니다.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

DTM

Avatar

Level 3

Hello All,

Can I fire _satellite.track("XXXXX") from console to test Direct call logic?

I am doing following

_satellite.data.customVars.pageName='HomePage' <----- Setting the customVar

_satellite.track('pageLoad') <---- Sending signal to fire Direct Call Rule. But this gives result as 'undefined' in console)

Please see the attached image file.

Regards

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 3

Thanks for your replay

I can absolutely use that function from console to set the customVars to be used in UI.

The Site is written in AngularJS.

It is working fine both ways now:

1. creating a DataLayer (or I should say sending data to DTM) using _satellite.setVar from application

2. creating a JSON DataLayer within the application and accessing it from DTM objects to set direct rules.

I can not share the URL as it is not yet accessible from outside of DMZ.

Regards

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Level 8

Hi Sameer,

You can fire the Direct call rule from the console as long as it is set up correctly in the UI.

You appear to be using functions that are not recommended. You should ideally use only these objects. 

Also, could you provide a URL where you're trying to implement as well as your DTM company/web property?

Kind Regards

Rahul

Avatar

정확한 답변 작성자:
Level 3

Thanks for your replay

I can absolutely use that function from console to set the customVars to be used in UI.

The Site is written in AngularJS.

It is working fine both ways now:

1. creating a DataLayer (or I should say sending data to DTM) using _satellite.setVar from application

2. creating a JSON DataLayer within the application and accessing it from DTM objects to set direct rules.

I can not share the URL as it is not yet accessible from outside of DMZ.

Regards

Avatar

Level 8

Oh ok. That's good then.

Thanks for letting us know. (could you let us know if you were able to identify what the problem was?)

Feel free to reach out in future :).

Regards

Rahul