DTM | Community
Skip to main content
New Participant
October 16, 2015
Solved

DTM

  • October 16, 2015
  • 3 replies
  • 1389 views

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

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 Sameer_Khaladka

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 replies

Rahsing
New Participant
October 16, 2015

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

Sameer_KhaladkaAuthorAccepted solution
New Participant
October 16, 2015

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

Rahsing
New Participant
October 16, 2015

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