Google Tag Manager

Forum Discussion

bwunderlich's avatar
bwunderlich
Collaborator
3 months ago

No Action in Data Transformation

Hi!

We are using a data transformation (Track users) to receive events from our loyalty system. As not every incoming event shall trigger any action, I would like to tell the transformation to "do nothing".

For this I tried

return {}

or

const brazecall = {
  attributes: [],
  events: []
};
return brazecall;

Both led to an error. Is there anything I can return to make Braze do nothing and not causing an error in the transformation log? Thanks!

Best regards
Benjamin

1 Reply

  • Hey bwunderlich, did you find a solution for this? If not, I would try it the other way round. Prepend an if statement to make the track user call only run if the event name is equal to the event you want it to work for.