Custom Event Passes in Subsequent Custom Link Call

Avatar

Avatar
Validate 10
Level 2
johncfl
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

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

Avatar
Validate 10
Level 2
johncfl
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

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

11-06-2018

Background

We made a request to our website developer to trigger custom link call A when user clicks a specific button on a page. As part of custom link call A, we also requested to pass custom event 1. After this change we implemented, custom link call A was firing correctly.

The issue we've been noticing though is when a user clicks another button that triggers custom link call B. We noticed that custom event 1 is also passed in custom link call B even though it should only pass in custom link call A. Can anyone suggest any direction we should point our developers to in order to fix this problem?

Our developer said: the parameter field is set to {} (empty object) for custom link call B. That means that it is Omniture setting the event values, not the front-end code.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
Waqas_Rafiq
Level 4

Likes

30 likes

Total Posts

49 posts

Correct reply

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

Avatar
Validate 1
Level 4
Waqas_Rafiq
Level 4

Likes

30 likes

Total Posts

49 posts

Correct reply

21 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Waqas_Rafiq
Level 4

11-06-2018

Hi John,

After your initial click on the first button, try calling s.clearVars();

The s.clearVars() Function

That would ensure that any previous variables set are not associated with the next ones.

Hope it helps.

/Waqas

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
Level 2
johncfl
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

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

Avatar
Validate 10
Level 2
johncfl
Level 2

Likes

5 likes

Total Posts

16 posts

Correct reply

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

12-06-2018

Looks like this will work. Thanks!

Avatar

Avatar
Give Back 50
Level 6
pabloc82923542
Level 6

Likes

78 likes

Total Posts

358 posts

Correct reply

82 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Level 6
pabloc82923542
Level 6

Likes

78 likes

Total Posts

358 posts

Correct reply

82 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
pabloc82923542
Level 6

12-06-2018

I would recommend DTM here. It is great at allowing you to set custom link events and easily attach secondary props or evars.

Now your problem may be the event you requested is attached to a element or button ID that is used in multiple spots and both trigger the rule. You may need to  tweak each button to make them unique so they dont do that.

GLTU