Launch: set a data element from within a rule?
How can I set a data element (I have it created as a custom code data element) from a rule? Basically I want the rule to fire when a user clicks a certain tile (there's a row of tiles with links). The following javascript figures out which tile it is and then tries to set the data element, but it's not working. tileIndex is correct, but the data element (featuredTileNumber) isn't getting set.
var tileIndex = $('.feature-tile-container .feature-tile .feature-tile-container__read-more-action .analytics-featuretitle-event').index(this)+1;
_satellite.logger.info('tile index= ' + tileIndex);
_satellite.setVar("featuredTileNumber",tileIndex);
_satellite.getVar("featuredTileNumber");