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
BedrockMission!

Learn More

View all

Sign in to view all badges

linkTrackEvents in custom code

Avatar

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
surekhan9781820
Level 1

13-04-2018

In Adobe Launch, I am trying to raise events in custom code on a click event.

Below is the code that fires the events in custom code.

s.linkTrackVars="events";

s.linkTrackEvents="event63,event563";

s.events="event63,event563";

This code works fine in DTM but does not work in Launch, Anything different in Launch? Who do I assign evars, props or events in custom code?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
surekhan9781820
Level 1

13-04-2018

It is a Core-click event rule with no conditions and needs to fire on any element. There are no console errors. I tried setting prop or eVar but it  didn't help too. It might be a s object problem, but how do we verify I am able to access the s object from the rule?

I tired setting events directly from the UI instead of custom code and it worked fine.

Answers (5)

Answers (5)

Avatar

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
surekhan9781820
Level 1

13-04-2018

I am using Adobe Analytics Extension in Action Configuration, and Custom code section of the actions rule.

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

13-04-2018

Also, from my understanding, you should still be able to access the s object from the custom code section of the Analytics extension. Which custom code section are you trying to set the events in? Are you using the custom section in the actions portion of the rule? If so, what extension are you using in your action configuration?

Avatar

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
surekhan9781820
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
surekhan9781820
Level 1

13-04-2018

Because of too many anchor tags on my page, I would like to handle all the anchor tag clicks in a single rule but fire different events or props depending on the element clicked.

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

13-04-2018

So if you weren't able to set any variables on the s object, it's likely a scoping issue. Can I ask why you are trying to set variables in the custom code section to begin with? If you are just setting events, the UI should be able to handle that without any problem.

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

13-04-2018

Can you show how you've setup the rule in Launch? Also, are you getting any errors in the javascript console? Finally, can you verify that you are able to access the s object from that rule? Try setting a prop or eVar in the custom section to see if it's a problem with the s object or specifically the events.