Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

event not firing in custom link

Avatar

Level 1

Hello, I cannot get an event to fire in a custom link.  Here is my code:

 

$('#searchButton').click(function() {
    trackSearchEvent();
});

function trackSearchEvent(){
    var s=s_gi(s_account)
    s.linkTrackVars='eVar31,events';
    s.linkTrackEvents='event30';
    s.eVar31=$('#zipOrCity').val();
    s.events='event30';
    s.tl(true,'o','event debug',null,'navigate');
}

 

No matter what I try, it will not track the event.  It tracks eVar31 but it will not track the event.  What am I doing wrong?  

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

Thanks for reaching out.

Please go through the below mentioned helps guide links and see if you are following the steps and syntax mentioned:

https://marketing.adobe.com/resources/help/en_US/sc/implement/linkTrackEvents.html

https://marketing.adobe.com/resources/help/en_US/sc/implement/events.html

Thanks!

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi there,

Thanks for reaching out.

Please go through the below mentioned helps guide links and see if you are following the steps and syntax mentioned:

https://marketing.adobe.com/resources/help/en_US/sc/implement/linkTrackEvents.html

https://marketing.adobe.com/resources/help/en_US/sc/implement/events.html

Thanks!