Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Not able set events in Web Page using manual S object

satishk38346838
Level 3
Level 3

Hi,

Using DTM, I am tracking web pages. My requirement I want to set eVars, Props , products & events in web page manually by using s object.

I tried using var s = _satellite.getToolsByType('sc')[0].getS(); this code. But it's not working.

Kindly provide inputs to achieve this requirement.

Thanks & Regards,

Satish Kumar G

1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

HI Satish,

Can you provide more information around why it isn't working? You may need to use a different variable from 's'. I tried your code on one of my test sites that has DTM deployed 

var mySVar = _satellite.getToolsByType('sc')[0].getS(); mySVar.eVar1 = "testval" mySVar.t();

This produced the following image request:

 

Thank you,
Jantzen

View solution in original post

3 Replies
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

HI Satish,

Can you provide more information around why it isn't working? You may need to use a different variable from 's'. I tried your code on one of my test sites that has DTM deployed 

var mySVar = _satellite.getToolsByType('sc')[0].getS(); mySVar.eVar1 = "testval" mySVar.t();

This produced the following image request:

 

Thank you,
Jantzen

jantzen_belliston-Adobe
Level 10
Level 10

Hi Satish,

Did my previous response answer your question, or did you still have questions?

 

Cheers,

Jantzen

satishk38346838
Level 3
Level 3

Thank you Jantzen. Issue is resolved.

Thanks & Regards,

Satish Kumar G