Text this: Investigating the interplay between initial hard processes and final-state effects measuring prompt and non-prompt J/ψ