Reputation: 47
I have created 3 different event based rule in a page to track 3 different buttons in a page. When I click on the first link it is fine. But when the second link is clicked it fires 2 times with the value I set for the 1st button and the current button.
When I click the third button it fires again 2 times with the previous click event and the present one. Can you please let me know how to stop this?
This the code that I have.
<div class="container1 wireBlock" id="hero" style="top: 0px;">
<div id="lensFlare" style="top: 150px;"></div>
<section class="banner">
<h1>THIS</h1>
<h2>xxx</h2>
<a class="js-loadVideo" href="#">
<img border="0" alt="logo" src="/us/media/play-button.png" width="100" height="100">Play Video</a>
</section>
</div>
The selector used is #hero a.js-loadVideo
The other button that I have on the same page is
<a class="button blue" href="www.test.com" target="_blank">Register Now</a>
If I click on Register Now it is firing the value that I have set for the top button.
Upvotes: 0
Views: 882
Reputation: 7
This sounds like something I have had trouble with this in the past. I used the following to get this to fix:
Search your s_code for the following plugin/utility by searching for "clearVars":
/* Utility manageVars v1.4 - clear variable values (requires split 1.5)*/
/* */
/* editing out code not relevant to question */
s.clearVars=new Function("t","var s=this;s[t]='';");
/* editing out code not relevant to question */
In the Criteria section of all your event-based rules select "Custom" and add the following code:
s.manageVars("clearVars","events,",1)
return true;
If you are missing the s_code piece you can get it by downloading a more recent s_code file from Adobe
Upvotes: 0