I am trying to use custom script in the Event Based Rule to fire tag in Dynamic Tag Management.
Please note that my objective is just to fire tag on the page as of now, so that I can leverage this script for my further use in DTM.
Please have a look at my problem statement: In the 'Conditions' section of 'Event Based Rules', I have selected 'Event Type' as 'Click'. Set the 'Element Tag or Selector' as 'div'. Now, I can use 'Manually assign properties & attributes' option here, for eg: setting 'property' as 'id' and 'Value' as '12345' (which is id's value on the page, suppose). So, whenever user clicks on any link with HTML element tag as 'div' having property 'id' and value being '12345', a Omniture tag will fire on the click functionality of this.
What I want now is, instead of using 'Manually assign properties & attributes' option, the similar thing I want to do by writing a script (In Rule Conditions -> Data -> Customs). I am writing this code in the script (after un-checking the 'Manually assign properties & attributes' option ):
$('#12345').click(function() { return true ; });
But this is not working.
Can someone please help me out with this. I am badly stuck in this.
Thanks, Adi