I have a scenario where I need to add a mailchimp subscriber and then tag them.
The scenario looks like this:
- Signup received via a google sheet
- Check if email already exists in my list. [I use router here]
2a. If they exist, call update subscriber
2b. If they don’t exist call add subscriber. - Tag new or updated user
Because I create two routes at step 2, if I want to tag the user I have to duplicate the modules on each route like this:
However, the tagging of the user is unrelated to either of the routes and only depends on the email from the google sheet. What I would like to do is combine the routes again and just have one module that controls tagging, so it would look like this:
Is there a way to do this? To combine two routes once you no longer need the seperate logic?
I know this is a trivial example as an easy solution is just to create the tagging module and then duplicate it for each path but I wanted it to be easily understandable. I have more complex scenarios where it would be beneficial to combine routes for visual clarity and to prevent me from making changes in one of the subsequent paths without making those same changes in the other